This was a regression in 5fdcf85bbffe7451c227478fda62da5c0938f27d
Unified · Split
| @@ -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]; |