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

dont ignore MAX_READ_SIZE

Originally committed as revision 6341 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-09-26 17:25:28 +00:00
parent 398f5d3f1d
commit 5fb83c3844

View 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) */