Browse code

fix issue 1747

Originally committed as revision 21874 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2010/02/18 09:19:50
Showing 1 changed files
... ...
@@ -2070,9 +2070,11 @@ static int decode_thread(void *arg)
2070 2070
         stream_component_open(is, audio_index);
2071 2071
     }
2072 2072
 
2073
+    ret=-1;
2073 2074
     if (video_index >= 0) {
2074
-        stream_component_open(is, video_index);
2075
-    } else {
2075
+        ret= stream_component_open(is, video_index);
2076
+    }
2077
+    if(ret<0) {
2076 2078
         /* add the refresh timer to draw the picture */
2077 2079
         schedule_refresh(is, 40);
2078 2080