[vlc-devel] [PATCH 07/10] avcodec: vdpau: set the i_chroma corresponding to the decoded format
Steve Lhomme
robux4 at ycbcr.xyz
Wed Dec 18 15:53:10 CET 2019
---
modules/hw/vdpau/avcodec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 16ce987d0af..49ff13d589e 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -170,8 +170,13 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, enum PixelFormat hwfmt, con
switch (type)
{
case VDP_CHROMA_TYPE_420:
+ fmt_out->i_chroma = VLC_CODEC_VDPAU_VIDEO_420;
+ break;
case VDP_CHROMA_TYPE_422:
+ fmt_out->i_chroma = VLC_CODEC_VDPAU_VIDEO_422;
+ break;
case VDP_CHROMA_TYPE_444:
+ fmt_out->i_chroma = VLC_CODEC_VDPAU_VIDEO_444;
break;
default:
msg_Err(va, "unsupported chroma type %"PRIu32, type);
--
2.17.1
More information about the vlc-devel
mailing list