1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hwcontext_vaapi: Fix mapping from DRM

This was broken by bed670a1de, which added
an assert that always failed.
This commit is contained in:
Mark Thompson 2018-05-24 01:17:12 +01:00
parent fe84f70819
commit 8ef51a4092

View File

@ -1024,8 +1024,10 @@ static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst,
"%08x.\n", desc->objects[0].fd, va_fourcc); "%08x.\n", desc->objects[0].fd, va_fourcc);
for (i = 0; i < FF_ARRAY_ELEMS(vaapi_format_map); i++) { for (i = 0; i < FF_ARRAY_ELEMS(vaapi_format_map); i++) {
if (vaapi_format_map[i].fourcc == va_fourcc) if (vaapi_format_map[i].fourcc == va_fourcc) {
va_rt_format = vaapi_format_map[i].rt_format; va_rt_format = vaapi_format_map[i].rt_format;
break;
}
} }
av_assert0(i < FF_ARRAY_ELEMS(vaapi_format_map)); av_assert0(i < FF_ARRAY_ELEMS(vaapi_format_map));