Browse Source

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>
tags/n4.3
Aman Gupta 6 years ago
parent
commit
0821bc4eee
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vaapi_encode.c

+ 1
- 1
libavcodec/vaapi_encode.c View File

@@ -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…
Cancel
Save