mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
vaapi_h264: Fix CPB/DPB delays
This should be ticks, not time_scale steps - it was wrong for all
framerates not a multiple of 1/2.
(cherry picked from commit 30645174e3
)
This commit is contained in:
parent
0bc7575ced
commit
94a4048619
@ -616,10 +616,8 @@ static int vaapi_encode_h264_init_picture_params(AVCodecContext *avctx,
|
||||
if (opt->sei & SEI_TIMING) {
|
||||
memset(&priv->pic_timing, 0, sizeof(priv->pic_timing));
|
||||
|
||||
priv->pic_timing.cpb_removal_delay =
|
||||
2 * sps->vui.num_units_in_tick * priv->cpb_delay;
|
||||
priv->pic_timing.dpb_output_delay =
|
||||
2 * sps->vui.num_units_in_tick * priv->dpb_delay;
|
||||
priv->pic_timing.cpb_removal_delay = 2 * priv->cpb_delay;
|
||||
priv->pic_timing.dpb_output_delay = 2 * priv->dpb_delay;
|
||||
|
||||
priv->sei_needed = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user