mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
mpeg2dec: use _scale_ceil to compute frame period
https://bugzilla.gnome.org/show_bug.cgi?id=675769
This commit is contained in:
parent
4bfeef832e
commit
32c45932e4
1 changed files with 3 additions and 1 deletions
|
@ -598,7 +598,9 @@ handle_sequence (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info)
|
|||
/* set framerate */
|
||||
mpeg2dec->fps_n = 27000000;
|
||||
mpeg2dec->fps_d = info->sequence->frame_period;
|
||||
mpeg2dec->frame_period = info->sequence->frame_period * GST_USECOND / 27;
|
||||
mpeg2dec->frame_period =
|
||||
gst_util_uint64_scale_ceil (info->sequence->frame_period, GST_USECOND,
|
||||
27);
|
||||
|
||||
/* Mpeg2dec has 2 frame latency to produce a picture and 1 frame latency in
|
||||
* it's parser */
|
||||
|
|
Loading…
Reference in a new issue