[vlc-devel] [PATCH] core: avcodec requires 32-bytes memory alignment in many cases

Steve Lhomme robux4 at gmail.com
Wed Dec 13 09:22:11 CET 2017


On Tue, Mar 31, 2015 at 11:25 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> I doubt that libavcodec has alignment requirement for the whole picture.

It does. And when SIMD is enabled (so pretty much always) the
alignment for all planes must be 32.

http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/utils.c;h=873f39f9bda4f6473035c7e096fbf04331858e73;hb=HEAD#l419
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/internal.h;h=30cb9a0de1df41fc4eed4f3cf2084343cdf04227;hb=HEAD#l90

> Usually, alignment constraints are on the scan line or possibly on the
> plane.
>
> --
> Rémi Denis-Courmont
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list