lavf: initialise reference_dts in av_estimate_timings_from_pts.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Mar 2011 21:39:14 +0000 (22:39 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 13 Jun 2011 18:46:06 +0000 (20:46 +0200)
Fixes issue2437.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/utils.c

index dc3b9d8..d0fd0d4 100644 (file)
@@ -1933,6 +1933,7 @@ static void av_estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset
         st= ic->streams[i];
         st->cur_dts= st->first_dts;
         st->last_IP_pts = AV_NOPTS_VALUE;
+        st->reference_dts = AV_NOPTS_VALUE;
     }
 }