History

avcodec/vaapi_encode: respect -force_key_frames setting

This was a regression in 5fdcf85bbffe7451c227478fda62da5c0938f27d

Aman Gupta committed 7 years ago

Commit 0821bc41 parent 02a44ed1 file · +1 −1Browse files

Showing the changes to libavcodec/vaapi_encode.c (1 of 1 file). Show all

Unified · Split

libavcodec/vaapi_encode.c+1−1
@@ -1057,7 +1057,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame) · 1056 unmodified lines
10571057 if (err < 0)
10581058 goto fail;
10591059
1060− if (ctx->input_order == 0)
1060+ if (ctx->input_order == 0 || frame->pict_type == AV_PICTURE_TYPE_I)
10611061 pic->force_idr = 1;
10621062
10631063 pic->input_surface = (VASurfaceID)(uintptr_t)frame->data[3];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t