From 8e2404b8dfe1ed6c4a23573ec01de85604487d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimo=20J=C3=A4rvi?= Date: Thu, 2 Jun 2011 18:02:38 +0300 Subject: [PATCH] ffdec: Fix calculating frame duration from last timestamp and frame count. Fixes bug #651714. --- ext/ffmpeg/gstffmpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 67dcf2200d..8fab65955a 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2538,8 +2538,8 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf) } } ffmpegdec->last_in = in_timestamp; + ffmpegdec->last_frames = 0; } - ffmpegdec->last_frames = 0; GST_LOG_OBJECT (ffmpegdec, "Received new data of size %u, offset:%" G_GUINT64_FORMAT ", ts:%"