[FFmpeg-devel] [PATCH] vp9: make "above" buffer pointer 32-byte aligned.

James Almer jamrial at gmail.com
Sat Mar 21 21:18:18 CET 2015


On 21/03/15 4:36 PM, Ronald S. Bultje wrote:
> ---
>  libavcodec/vp9.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
> index 77e98f5..a5e36f5 100644
> --- a/libavcodec/vp9.c
> +++ b/libavcodec/vp9.c
> @@ -2506,7 +2506,7 @@ static void intra_recon(AVCodecContext *ctx, ptrdiff_t y_off, ptrdiff_t uv_off)
>              for (x = 0; x < end_x; x += uvstep1d, ptr += 4 * uvstep1d,
>                                     ptr_r += 4 * uvstep1d, n += step) {
>                  int mode = b->uvmode;
> -                uint8_t *a = &a_buf[16];
> +                uint8_t *a = &a_buf[32];
>                  int eob = b->skip ? 0 : b->uvtx > TX_8X8 ? AV_RN16A(&s->uveob[p][n]) : s->uveob[p][n];
>  
>                  mode = check_intra_mode(s, mode, &a, ptr_r,
> 

Referenced ticket 4383 and applied.


More information about the ffmpeg-devel mailing list