summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/demux.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c
index 745dc8687c..87dbd53a0f 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -2771,11 +2771,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
/* flush the decoders */
if (sti->info->found_decoder == 1) {
- do {
- err = try_decode_frame(ic, st, empty_pkt,
- (options && i < orig_nb_streams)
- ? &options[i] : NULL);
- } while (err > 0 && !has_codec_parameters(st, NULL));
+ err = try_decode_frame(ic, st, empty_pkt,
+ (options && i < orig_nb_streams)
+ ? &options[i] : NULL);
if (err < 0) {
av_log(ic, AV_LOG_INFO,