diff --git a/libavformat/utils.c b/libavformat/utils.c index 425db9a28a..910aaca4e6 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) */