From acc1309cdfd8c5e5fd9c192a1de953df2d84d8f4 Mon Sep 17 00:00:00 2001 From: Cheung Yik Pang Date: Wed, 4 Dec 2024 18:45:30 +0800 Subject: [PATCH] video: fix AV12 format lacking the GST_VIDEO_FORMAT_FLAG_ALPHA flag The GST_VIDEO_FORMAT_FLAG_ALPHA indicates whether a video format has an alpha channel. AV12 does have an alpha plane. Switching from MAKE_YUV_FORMAT to MAKE_YUVA_FORMAT to generate GST_VIDEO_FORMAT_AV12. Fixes #4081 Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c b/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c index b5415fc9ee..9bd9c69825 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c @@ -8026,7 +8026,7 @@ static const VideoFormat formats[] = { PACK_RGBP), MAKE_RGB_FORMAT (BGRP, "raw video", DPTH888, PSTR111, PLANE210, OFFS0, SUB444, PACK_BGRP), - MAKE_YUV_FORMAT (AV12, "raw video", GST_MAKE_FOURCC ('A', 'V', '1', '2'), + MAKE_YUVA_FORMAT (AV12, "raw video", GST_MAKE_FOURCC ('A', 'V', '1', '2'), DPTH8888, PSTR1221, PLANE0112, OFFS001, SUB4204, PACK_AV12), MAKE_RGBA_LE_FORMAT (ARGB64_LE, "raw video", DPTH16_16_16_16, PSTR8888, PLANE0, OFFS2460, SUB4444, PACK_ARGB64_LE),