[vlc-devel] [PATCH] videotoolbox: set kCVPixelBufferBytesPerRowAlignmentKey to 16
Jean-Baptiste Kempf
jb at videolan.org
Sun Jul 9 19:39:59 CEST 2017
Why?
I'm sorry, but this means a bit more justification, in the commit log, and probably in the code.
On Sun, 9 Jul 2017, at 03:19, Zhao Zhili wrote:
>
> ---
> 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)
>
> _________________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
Jean-Baptiste Kempf - President
+33 672 704 734
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170709/437c040e/attachment.html>
More information about the vlc-devel
mailing list