[vlc-commits] codec: videotoolbox: don't handle interlaced video on iOS
Thomas Guillem
git at videolan.org
Wed Sep 27 19:17:13 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep 27 19:10:53 2017 +0200| [547ce8c47e1abadb18d6999332762e3266ebf245] | committer: Thomas Guillem
codec: videotoolbox: don't handle interlaced video on iOS
See http://www.openradar.me/30669495
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=547ce8c47e1abadb18d6999332762e3266ebf245
---
modules/codec/videotoolbox.m | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 95c42f562f..cfa86d41cc 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1406,6 +1406,15 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
vlc_mutex_lock(&p_sys->lock);
+#if TARGET_OS_IPHONE
+ if (p_block->i_flags & BLOCK_FLAG_INTERLACED_MASK)
+ {
+ msg_Warn(p_dec, "VT decoder doesn't handle deinterlacing on iOS, "
+ "aborting...");
+ p_sys->vtsession_status = VTSESSION_STATUS_ABORT;
+ }
+#endif
+
if (p_sys->vtsession_status == VTSESSION_STATUS_RESTART)
{
msg_Warn(p_dec, "restarting vt session (dec callback failed)");
More information about the vlc-commits
mailing list