[FFmpeg-cvslog] lavf: initialise reference_dts in av_estimate_timings_from_pts.

Michael Niedermayer git at videolan.org
Tue Jun 14 05:09:36 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Mar  8 22:39:14 2011 +0100| [a8fd2f4e0238d6ddde0db28c5bb4b39d2f98d4ed] | committer: Anton Khirnov

lavf: initialise reference_dts in av_estimate_timings_from_pts.

Fixes issue2437.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8fd2f4e0238d6ddde0db28c5bb4b39d2f98d4ed
---

 libavformat/utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index dc3b9d8..d0fd0d4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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;
     }
 }
 



More information about the ffmpeg-cvslog mailing list