From: Michael Niedermayer Date: Tue, 26 Sep 2006 17:25:28 +0000 (+0000) Subject: dont ignore MAX_READ_SIZE X-Git-Tag: v0.5~11763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fb83c384480c76bb4b05248c09f9c4bc77ce4f4;p=platform%2Fupstream%2Flibav.git dont ignore MAX_READ_SIZE Originally committed as revision 6341 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/utils.c b/libavformat/utils.c index 425db9a..910aaca 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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) */