[vlc-commits] videotoolbox: also set fmt_out.video.chroma

Thomas Guillem git at videolan.org
Fri Feb 9 14:39:19 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  9 14:29:39 2018 +0100| [eadc1bda44ca41705d76f477b031bc3d788e2b51] | committer: Thomas Guillem

videotoolbox: also set fmt_out.video.chroma

This fixes transcoding issue from videotoolbox.

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

 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;



More information about the vlc-commits mailing list