mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ffmpegdec: Fix duration calculation when ticks_per_frame isn't 1
Fixes bug #591163.
This commit is contained in:
parent
1c283b8c22
commit
ea6a66b5b3
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue