[vlc-devel] [PATCH] core: avcodec requires 32-bytes memory alignment in many cases
Rémi Denis-Courmont
remi at remlab.net
Tue Mar 31 11:24:35 CEST 2015
Le 2015-03-31 11:59, Steve Lhomme a écrit :
> --
> this will avoid disabling direct rendering in those cases
> ---
> src/misc/picture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/misc/picture.c b/src/misc/picture.c
> index 6aa5b05..8b4e0bf 100644
> --- a/src/misc/picture.c
> +++ b/src/misc/picture.c
> @@ -62,7 +62,7 @@ static int AllocatePicture( picture_t *p_pic )
> i_bytes += p->i_pitch * p->i_lines;
> }
>
> - uint8_t *p_data = vlc_memalign( 16, i_bytes );
> + uint8_t *p_data = vlc_memalign( 32, i_bytes );
This is undefined if i_bytes is not a multiple of 32...
> if( i_bytes > 0 && p_data == NULL )
> {
> p_pic->i_planes = 0;
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list