[vlc-devel] [PATCH 04/10] d3d11va: set the i_chroma corresponding to the decoded format

Steve Lhomme robux4 at ycbcr.xyz
Wed Dec 18 15:53:07 CET 2019


---
 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 b130d4b081f..619d7569a22 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -318,6 +318,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;
-- 
2.17.1



More information about the vlc-devel mailing list