[FFmpeg-devel] [PATCH 2/2] libavutil/hwcontext_vaapi: fix nv12 map error
Wenbin Chen
wenbin.chen at intel.com
Wed Mar 30 06:41:51 EEST 2022
The UV plane of NV12 should not be mapped to DRM_FORMAT_GR88. Remove
this map after the problem is fixed on ffmpeg-vulkan side.
Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>
---
libavutil/hwcontext_vaapi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index 994b744e4d..75acc851d6 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -992,7 +992,6 @@ static const struct {
} vaapi_drm_format_map[] = {
#ifdef DRM_FORMAT_R8
DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88),
- DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_GR88),
#endif
DRM_MAP(NV12, 1, DRM_FORMAT_NV12),
#if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16)
--
2.32.0
More information about the ffmpeg-devel
mailing list