vlc/vlc-3.0 | branch: master | Thomas Guillem <tho...@gllm.fr> | Fri Feb  9 
14:29:39 2018 +0100| [f7d40965adb0f36fcc367657b2fc55185c1e85f4] | committer: 
Hugo Beauzée-Luyssen

videotoolbox: also set fmt_out.video.chroma

This fixes transcoding issue from videotoolbox.

(cherry picked from commit eadc1bda44ca41705d76f477b031bc3d788e2b51)
Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

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

 modules/codec/videotoolbox.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 358131a65c..27f23ef369 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1985,6 +1985,7 @@ static int UpdateVideoFormat(decoder_t *p_dec, 
CVPixelBufferRef imageBuffer)
             p_dec->p_sys->vtsession_status = VTSESSION_STATUS_ABORT;
             return -1;
     }
+    p_dec->fmt_out.video.i_chroma = p_dec->fmt_out.i_codec;
     if (decoder_UpdateVideoFormat(p_dec) != 0)
     {
         p_dec->p_sys->vtsession_status = VTSESSION_STATUS_ABORT;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to