[vlc-commits] videotoolbox: fallback to I420 only if possible

Thomas Guillem git at videolan.org
Fri Mar 9 13:41:53 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar  9 12:58:34 2018 +0100| [7d24bc0645f808f36fe4527765a6b5cc96b3c7b2] | committer: Thomas Guillem

videotoolbox: fallback to I420 only if possible

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

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

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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 9f16c7a104..b00eb467ac 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1839,7 +1839,7 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
         p_sys->vtsession_status = VTSESSION_STATUS_ABORT;
 #else
         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



More information about the vlc-commits mailing list