vlc | branch: master | Quentin Chateau <[email protected]> | Fri Apr 3 17:34:38 2020 +0200| [8fecb68f4b74f5e5b5f373014567fba7d07ae85b] | committer: Steve Lhomme
nvdec: fix opaque output format update The actual chroma is determined by the decoder and may not match what we guessed before starting to decode Signed-off-by: Steve Lhomme <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fecb68f4b74f5e5b5f373014567fba7d07ae85b --- modules/hw/nvdec/nvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c index 893cd8381a..e3aeff2355 100644 --- a/modules/hw/nvdec/nvdec.c +++ b/modules/hw/nvdec/nvdec.c @@ -327,7 +327,7 @@ static int CUtoFMT(video_format_t *fmt, const CUVIDEOFORMAT *p_format) unsigned int i_bpp = p_format->bit_depth_luma_minus8 + 8; vlc_fourcc_t i_chroma; if (is_nvdec_opaque(fmt->i_chroma)) - i_chroma = fmt->i_chroma; + i_chroma = MapSurfaceOpaqueChroma(p_format->chroma_format, i_bpp); else i_chroma = MapSurfaceChroma(p_format->chroma_format, i_bpp); if (i_chroma == 0) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
