1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix issue 1747

Originally committed as revision 21874 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-02-18 00:19:50 +00:00
parent 5e46be96f8
commit 077a8d61c0

View File

@ -2070,9 +2070,11 @@ static int decode_thread(void *arg)
stream_component_open(is, audio_index); stream_component_open(is, audio_index);
} }
ret=-1;
if (video_index >= 0) { if (video_index >= 0) {
stream_component_open(is, video_index); ret= stream_component_open(is, video_index);
} else { }
if(ret<0) {
/* add the refresh timer to draw the picture */ /* add the refresh timer to draw the picture */
schedule_refresh(is, 40); schedule_refresh(is, 40);