mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +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:
parent
02a44ed0c8
commit
0821bc4eee
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user