dont ignore MAX_READ_SIZE
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Sep 2006 17:25:28 +0000 (17:25 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Sep 2006 17:25:28 +0000 (17:25 +0000)
Originally committed as revision 6341 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 425db9a..910aaca 100644 (file)
@@ -1811,13 +1811,12 @@ int av_find_stream_info(AVFormatContext *ic)
                 ret = count;
                 break;
             }
-        } else {
+        }
             /* we did not get all the codec info, but we read too much data */
             if (read_size >= MAX_READ_SIZE) {
                 ret = count;
                 break;
             }
-        }
 
         /* NOTE: a new stream can be added there if no header in file
            (AVFMTCTX_NOHEADER) */