aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-14 19:46:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-14 20:58:33 +0100
commit3b3a3c3d448edf071203632c0b68776ecb9d46e5 (patch)
treec1d83500187204893c40cd7186269037904dbcd7
parent13244abcd3db1e3972123efe0f0efe24a27dcf77 (diff)
downloadffmpeg-3b3a3c3d448edf071203632c0b68776ecb9d46e5.tar.gz
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>
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 798c6123e0..ae6347a49f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -594,6 +594,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;
}