Commit faff013f authored by Thomas Guillem's avatar Thomas Guillem

avcodec: vaapi: add missing error check

parent 45e14928
......@@ -324,6 +324,8 @@ static int CreateDRM(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt
sys->hw_ctx.config_id =
vlc_vaapi_CreateConfigChecked(o, sys->hw_ctx.display, i_profile,
VAEntrypointVLD, 0);
if (sys->hw_ctx.config_id == VA_INVALID_ID)
goto error;
/* Create surfaces */
assert(ctx->coded_width > 0 && ctx->coded_height > 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment