[vlc-commits] avcodec: vdpau: set the i_chroma corresponding to the decoded format
Steve Lhomme
git at videolan.org
Wed Jan 8 08:28:16 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 18 14:55:02 2019 +0100| [953f486cf731fc969bba21a04ffd67dc1e37fca4] | committer: Steve Lhomme
avcodec: vdpau: set the i_chroma corresponding to the decoded format
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=953f486cf731fc969bba21a04ffd67dc1e37fca4
---
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 16ce987d0a..49ff13d589 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);
More information about the vlc-commits
mailing list