[vlc-devel] [PATCH 01/18] decoder: do the output chroma fixup in decoder_UpdateVideoOutput()

Steve Lhomme robux4 at ycbcr.xyz
Mon Oct 28 13:41:18 CET 2019


All decoder owners do this fixup.
---
 src/input/decoder_helpers.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
index f3784e6dfbb..ce32608c92c 100644
--- a/src/input/decoder_helpers.c
+++ b/src/input/decoder_helpers.c
@@ -88,6 +88,9 @@ int decoder_UpdateVideoOutput( decoder_t *dec, vlc_video_context *vctx_out )
                   dec->cbs->video.format_update == NULL) )
         return -1;
 
+    /* */
+    dec->fmt_out.video.i_chroma = dec->fmt_out.i_codec;
+
     return dec->cbs->video.format_update( dec, vctx_out );
 }
 
-- 
2.17.1



More information about the vlc-devel mailing list