[vlc-commits] d3d11va: set the i_chroma corresponding to the decoded format

Steve Lhomme git at videolan.org
Wed Jan 8 08:28:13 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 18 11:35:22 2019 +0100| [1287d0ae4cd244c3517d3af592198393f4dffa4d] | committer: Steve Lhomme

d3d11va: set the i_chroma corresponding to the decoded format

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1287d0ae4cd244c3517d3af592198393f4dffa4d
---

 modules/codec/avcodec/d3d11va.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 3f29e29da1..77218b0275 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -316,6 +316,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat hwfmt, const
         goto error;
     }
 
+    final_fmt.i_chroma = sys->render_fmt->fourcc;
     err = va_pool_SetupDecoder(va, sys->va_pool, ctx, &final_fmt, sys->hw.surface_count);
     if (err != VLC_SUCCESS)
         goto error;



More information about the vlc-commits mailing list