hwcontext_vaapi: Add an assert in vaapi_map_from_drm()
authorHaihao Xiang <haihao.xiang@intel.com>
Thu, 10 May 2018 03:08:23 +0000 (11:08 +0800)
committerMark Thompson <sw@jkqxz.net>
Thu, 10 May 2018 18:52:53 +0000 (19:52 +0100)
commitbed670a1de29b58fcb3fe046562d8bd125b1457f
tree5253a40ef4aec59262ccf8c253220ed055aa7b01
parent7e78801fa5802dd49712d2b1fdb8bb31d8373ecc
hwcontext_vaapi: Add an assert in vaapi_map_from_drm()

Every fourcc in vaapi_drm_format_map should be in
vaapi_format_map, so add an assert to ensure we have the right maps.

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
libavutil/hwcontext_vaapi.c