[vlc-commits] videotoolbox: fallback to I420 only if possible
Thomas Guillem
git at videolan.org
Fri Mar 9 13:44:58 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 9 12:58:34 2018 +0100| [fc1367c1d69c24e5fc04f56d371a7ceda8a44029] | committer: 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 7d24bc0645f808f36fe4527765a6b5cc96b3c7b2)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fc1367c1d69c24e5fc04f56d371a7ceda8a44029
---
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 77183b2262..cbb71d2527 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