Skip to content
Snippets Groups Projects
Commit 5441103c authored by Simon McVittie's avatar Simon McVittie
Browse files

check-va-api: Convert an assertion into a graceful error

parent 526834ee
No related branches found
No related tags found
1 merge request!801check-va-api: Use supported surface format + opportunistic cleanup
......@@ -262,7 +262,11 @@ create_surfaces (VADisplay va_display,
}
}
assert (image_format.fourcc == fourcc);
if (image_format.fourcc != fourcc)
{
fprintf (stderr, "Unable to find an image format with fourcc 0x%08x\n", fourcc);
goto out;
}
attr.type = VASurfaceAttribPixelFormat;
attr.flags = VA_SURFACE_ATTRIB_SETTABLE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment