[vlc-commits] decoder: adjust colorspace for aout based video outputs

Steve Lhomme git at videolan.org
Mon Nov 5 10:01:23 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov  5 09:52:47 2018 +0100| [3089bf5a33ec77794d047a44df3da2d1b9b1aeb4] | committer: Steve Lhomme

decoder: adjust colorspace for aout based video outputs

It's done for video just before calling input_resource_RequestVout() as well.

Fixes #21356

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

 src/input/decoder.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 662048e2cb..fe824bb274 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -307,6 +307,14 @@ static vout_thread_t *aout_request_vout( void *p_private,
 {
     decoder_t *p_dec = p_private;
     struct decoder_owner *p_owner = dec_get_owner( p_dec );
+    video_format_t fmt;
+
+    if (p_fmt != NULL)
+    {
+        fmt = *p_fmt;
+        p_fmt = &fmt;
+        video_format_AdjustColorSpace( &fmt );
+    }
 
     p_vout = input_resource_RequestVout( p_owner->p_resource,
         &(vout_configuration_t){ .vout = p_vout, .fmt = p_fmt, .dpb_size = 1 },



More information about the vlc-commits mailing list