ffmpegdec: Fix duration calculation when ticks_per_frame isn't 1

Fixes bug #591163.
This commit is contained in:
Sjoerd Simons 2009-08-08 17:41:18 +01:00 committed by Sebastian Dröge
parent 1c283b8c22
commit ea6a66b5b3

View file

@ -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 {