[vlc-devel] [PATCH] videotoolbox: set kCVPixelBufferBytesPerRowAlignmentKey to 16

Zhao Zhili wantlamy at gmail.com
Sun Jul 9 03:19:21 CEST 2017


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

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 7806bd7843..9443bbe256 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -692,8 +692,7 @@ static int StartVideoToolbox(decoder_t *p_dec)
     cfdict_set_int32(p_sys->destinationPixelBufferAttributes,
                      kCVPixelBufferHeightKey, i_video_height);
     cfdict_set_int32(p_sys->destinationPixelBufferAttributes,
-                     kCVPixelBufferBytesPerRowAlignmentKey,
-                     i_video_width * 2);
+                     kCVPixelBufferBytesPerRowAlignmentKey, 16);

     /* setup decoder callback record */
     VTDecompressionOutputCallbackRecord decoderCallbackRecord;
-- 
2.11.0 (Apple Git-81)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170709/44ab3405/attachment.html>


More information about the vlc-devel mailing list