diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-05-24 01:17:12 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-05-24 01:20:31 +0100 |
commit | 8ef51a4092a52a9ae2dc42c48d399f4a01312976 (patch) | |
tree | 48d1883d3c2e619954f330d753a616fa592b7c2d /libavutil/hwcontext_vaapi.c | |
parent | fe84f70819d6f5aab3c4823290e0d32b99d6de78 (diff) | |
download | ffmpeg-8ef51a4092a52a9ae2dc42c48d399f4a01312976.tar.gz |
hwcontext_vaapi: Fix mapping from DRM
This was broken by bed670a1de29b58fcb3fe046562d8bd125b1457f, which added
an assert that always failed.
Diffstat (limited to 'libavutil/hwcontext_vaapi.c')
-rw-r--r-- | libavutil/hwcontext_vaapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index e55bb8db3f..a2387d4fc4 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -1024,8 +1024,10 @@ static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst, "%08x.\n", desc->objects[0].fd, va_fourcc); 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; + break; + } } av_assert0(i < FF_ARRAY_ELEMS(vaapi_format_map)); |