Commit fc1367c1 authored by Thomas Guillem's avatar Thomas Guillem

videotoolbox: fallback to I420 only if possible

This fixes the kVTPixelTransferNotSupportedErr error when trying to convert P010 to I420

(cherry picked from commit 7d24bc06)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 580d5dbd
......@@ -1839,7 +1839,7 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
p_sys->vtsession_status = VTSESSION_STATUS_ABORT;
if (!p_sys->b_cvpx_format_forced
&& p_sys->i_cvpx_format != kCVPixelFormatType_420YpCbCr8Planar)
&& p_sys->i_cvpx_format == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange)
/* In case of interlaced content, force VT to output I420 since our
* SW deinterlacer handle this chroma natively. This avoids having
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