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