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

Steve Lhomme git at videolan.org
Mon Nov 5 10:13:09 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov  5 09:52:47 2018 +0100| [bed5271a6736ec7cc1958051dfb21d8453179a5f] | 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

(cherry picked from commit 3089bf5a33ec77794d047a44df3da2d1b9b1aeb4)

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

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

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 1cb9aa82fc..775f256313 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -284,6 +284,14 @@ static vout_thread_t *aout_request_vout( void *p_private,
     decoder_t *p_dec = p_private;
     decoder_owner_sys_t *p_owner = p_dec->p_owner;
     input_thread_t *p_input = p_owner->p_input;
+    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, p_vout, p_fmt, 1,
                                          b_recyle );



More information about the vlc-commits mailing list