Commit f7d40965 authored by Thomas Guillem's avatar Thomas Guillem Committed by Hugo Beauzée-Luyssen

videotoolbox: also set fmt_out.video.chroma

This fixes transcoding issue from videotoolbox.

(cherry picked from commit eadc1bda)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent b18c5c79
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment