]> git.sesse.net Git - ffmpeg/commitdiff
avformat/utils: Do not update programs streams from program-less streams in update_wr...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 18:46:31 +0000 (19:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Dec 2014 19:56:59 +0000 (20:56 +0100)
Fixes Ticket3686

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 9328d6b0b790f09d60e43c29304b57a4c19910cc..a883745cf96ada55ebd812800f2915e5222ecd47 100644 (file)
@@ -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;
             }