mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Revert "avformat/demux: Count EAGAIN as 100 bytes in relation to read limit in avformat_find_stream_info()"
Modifying avformat_find_stream_info() behaviour based on the number of EAGAINs it encounters is a hack which usually only hides the real issue if such thing happen. This reverts commit b0cac7082d8a3ff2d4f039af01b45c48bb578de7.
This commit is contained in:
parent
aca09ed7d4
commit
dbc3b5a902
@ -2615,10 +2615,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
||||
/* NOTE: A new stream can be added there if no header in file
|
||||
* (AVFMTCTX_NOHEADER). */
|
||||
ret = read_frame_internal(ic, pkt1);
|
||||
if (ret == AVERROR(EAGAIN)) {
|
||||
read_size += 100;
|
||||
if (ret == AVERROR(EAGAIN))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
/* EOF or error*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user