From ea6a66b5b319832e659ed002dcb0bebe956e7a7c Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 8 Aug 2009 17:41:18 +0100 Subject: [PATCH] ffmpegdec: Fix duration calculation when ticks_per_frame isn't 1 Fixes bug #591163. --- 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 9b3373a..0b03fca 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -1851,7 +1851,7 @@ gst_ffmpegdec_video_frame (GstFFMpegDec * ffmpegdec, ffmpegdec->context->time_base.den < 1000)) { GST_LOG_OBJECT (ffmpegdec, "using decoder's framerate for duration"); out_duration = gst_util_uint64_scale_int (GST_SECOND, - ffmpegdec->context->time_base.num / + ffmpegdec->context->time_base.num * ffmpegdec->context->ticks_per_frame, ffmpegdec->context->time_base.den); } else { -- 2.7.4