[vlc-commits] codec: videotoolbox: don't force BufferBytesPerRowAlignmentKey

Thomas Guillem git at videolan.org
Mon Sep 11 17:31:59 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Sep 11 17:28:12 2017 +0200| [cd9353b8d4e977be4df1fe63411fb765e6f81ee2] | committer: Thomas Guillem

codec: videotoolbox: don't force BufferBytesPerRowAlignmentKey

This fixes H264 10bits RGBA rendering on iOS.

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

 modules/codec/videotoolbox.m | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index f726e7d1c6..8d745743f8 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -768,10 +768,6 @@ static int StartVideoToolbox(decoder_t *p_dec)
                          ntohl(p_sys->i_forced_cvpx_format));
     }
 
-    cfdict_set_int32(destinationPixelBufferAttributes,
-                     kCVPixelBufferBytesPerRowAlignmentKey,
-                     p_dec->fmt_out.video.i_width * 2);
-
     /* setup decoder callback record */
     VTDecompressionOutputCallbackRecord decoderCallbackRecord;
     decoderCallbackRecord.decompressionOutputCallback = DecoderCallback;



More information about the vlc-commits mailing list