diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-12 21:49:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-12 21:49:15 +0200 |
commit | 4470a3eeafa97d20b1e68a6b40490f71da726adf (patch) | |
tree | 61fe6da41d3880734f0f3ec252df14dcbe349973 /libavformat/utils.c | |
parent | 1db641cbd2170808dc1de81e86bee1900e5dd65c (diff) | |
download | ffmpeg-4470a3eeafa97d20b1e68a6b40490f71da726adf.tar.gz |
avformat/mpegts: dont clear programs during probing
Fixes Ticket 3763
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 3afe488f10..be888d8526 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3111,6 +3111,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) if (!max_analyze_duration) max_analyze_duration = ic->max_analyze_duration; + av_opt_set(ic, "skip_clear", "1", AV_OPT_SEARCH_CHILDREN); + if (!max_analyze_duration) { if (!strcmp(ic->iformat->name, "flv") && !(ic->ctx_flags & AVFMTCTX_NOHEADER)) { max_analyze_duration = 10*AV_TIME_BASE; @@ -3396,6 +3398,7 @@ 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() for (i = 0; i < ic->nb_streams; i++) { |