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

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
1057 if (err < 0)1057 if (err < 0)
1058 goto fail;1058 goto fail;
1059 1059
1060 if (ctx->input_order == 0)1060 if (ctx->input_order == 0 || frame->pict_type == AV_PICTURE_TYPE_I)
1061 pic->force_idr = 1;1061 pic->force_idr = 1;
1062 1062
1063 pic->input_surface = (VASurfaceID)(uintptr_t)frame->data[3];1063 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