[vlc-commits] decoder: do the output chroma fixup in decoder_UpdateVideoOutput()

Steve Lhomme git at videolan.org
Mon Nov 4 10:41:48 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 24 13:45:54 2019 +0200| [84f73dccdad3ff2c6d98536849d1fb04a03e45fb] | committer: Steve Lhomme

decoder: do the output chroma fixup in decoder_UpdateVideoOutput()

All decoder owners do this fixup.

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

 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 f3784e6dfb..ce32608c92 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 );
 }
 



More information about the vlc-commits mailing list