summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-08 17:41:18 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-08-08 22:20:03 +0200
commitea6a66b5b319832e659ed002dcb0bebe956e7a7c (patch)
tree3438afc072df7ec354c5d7d3855f28f1696f2347
parent1c283b8c220843bd02d88f4fc617d4f7dba4e014 (diff)
ffmpegdec: Fix duration calculation when ticks_per_frame isn't 1
Fixes bug #591163.
-rw-r--r--ext/ffmpeg/gstffmpegdec.c2
1 files changed, 1 insertions, 1 deletions
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 {