You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/demux: Remove fake-loop
When flushing, try_decode_frame() itself loops until the desired properties have been found or the decoder is drained. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -2771,11 +2771,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
|
|
||||||
/* flush the decoders */
|
/* flush the decoders */
|
||||||
if (sti->info->found_decoder == 1) {
|
if (sti->info->found_decoder == 1) {
|
||||||
do {
|
err = try_decode_frame(ic, st, empty_pkt,
|
||||||
err = try_decode_frame(ic, st, empty_pkt,
|
(options && i < orig_nb_streams)
|
||||||
(options && i < orig_nb_streams)
|
? &options[i] : NULL);
|
||||||
? &options[i] : NULL);
|
|
||||||
} while (err > 0 && !has_codec_parameters(st, NULL));
|
|
||||||
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
av_log(ic, AV_LOG_INFO,
|
av_log(ic, AV_LOG_INFO,
|
||||||
|
Reference in New Issue
Block a user