summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/demux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c
index 57720f4311..e121253dfd 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -2615,8 +2615,10 @@ 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))
+ if (ret == AVERROR(EAGAIN)) {
+ read_size += 100;
continue;
+ }
if (ret < 0) {
/* EOF or error*/