diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-14 21:46:31 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-20 05:27:17 +0300 |
commit | 30099bf0f01486b54aeea772ed21315dab731479 (patch) | |
tree | 145e862568178e7a6d37eaf8f7834b63fd0f0ac2 /libavformat | |
parent | f2fde86dae21f55a69a959e61e3d6466a6d5d545 (diff) |
avformat/utils: Do not update programs streams from program-less streams in update_wrap_reference()
Fixes Ticket3686
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a29524bf2e197dd8d582445de0fe17f03b79f79d)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 738355f45a..80a909ae48 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -706,6 +706,8 @@ static int update_wrap_reference(AVFormatContext *s, AVStream *st, int stream_in int default_stream_index = av_find_default_stream_index(s); if (s->streams[default_stream_index]->pts_wrap_reference == AV_NOPTS_VALUE) { for (i = 0; i < s->nb_streams; i++) { + if (av_find_program_from_stream(s, NULL, i)) + continue; s->streams[i]->pts_wrap_reference = pts_wrap_reference; s->streams[i]->pts_wrap_behavior = pts_wrap_behavior; } |