You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-20 06:16:02 +02:00
avcodec/vaapi_encode: respect -force_key_frames setting
This was a regression in 5fdcf85bbf
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
@ -1057,7 +1057,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame)
|
||||
if (err < 0)
|
||||
goto fail;
|
||||
|
||||
if (ctx->input_order == 0)
|
||||
if (ctx->input_order == 0 || frame->pict_type == AV_PICTURE_TYPE_I)
|
||||
pic->force_idr = 1;
|
||||
|
||||
pic->input_surface = (VASurfaceID)(uintptr_t)frame->data[3];
|
||||
|
Reference in New Issue
Block a user