diff options
author | Marton Balint <cus@passwd.hu> | 2022-06-18 23:13:16 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-07-06 23:37:29 +0200 |
commit | dbc3b5a902dc1f7392021b3471ef336999f6693c (patch) | |
tree | 423a41f4fc05e9432c9b044d36f45f109e1c920b /libavformat/demux.c | |
parent | aca09ed7d4832520cf10fb93faed4249726348c0 (diff) | |
download | ffmpeg-dbc3b5a902dc1f7392021b3471ef336999f6693c.tar.gz |
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.
Diffstat (limited to 'libavformat/demux.c')
-rw-r--r-- | libavformat/demux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c index e121253dfd..57720f4311 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -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*/ |