avformat/utils: Leave skip_clear enabled until after estimate_timings()
Should make no difference but will be needed for subsequent commits Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a6593f7cc6
commit
a7f25979dd
@ -3286,7 +3286,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
av_opt_set(ic, "skip_clear", "0", AV_OPT_SEARCH_CHILDREN);
|
|
||||||
|
|
||||||
// close codecs which were opened in try_decode_frame()
|
// close codecs which were opened in try_decode_frame()
|
||||||
for (i = 0; i < ic->nb_streams; i++) {
|
for (i = 0; i < ic->nb_streams; i++) {
|
||||||
@ -3375,6 +3374,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||||||
if (probesize)
|
if (probesize)
|
||||||
estimate_timings(ic, old_offset);
|
estimate_timings(ic, old_offset);
|
||||||
|
|
||||||
|
av_opt_set(ic, "skip_clear", "0", AV_OPT_SEARCH_CHILDREN);
|
||||||
|
|
||||||
if (ret >= 0 && ic->nb_streams)
|
if (ret >= 0 && ic->nb_streams)
|
||||||
/* We could not have all the codec parameters before EOF. */
|
/* We could not have all the codec parameters before EOF. */
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user