diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-08 17:41:18 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-08 22:20:03 +0200 |
commit | ea6a66b5b319832e659ed002dcb0bebe956e7a7c (patch) | |
tree | 3438afc072df7ec354c5d7d3855f28f1696f2347 | |
parent | 1c283b8c220843bd02d88f4fc617d4f7dba4e014 (diff) |
ffmpegdec: Fix duration calculation when ticks_per_frame isn't 1
Fixes bug #591163.
-rw-r--r-- | ext/ffmpeg/gstffmpegdec.c | 2 |
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 { |