Ticket #6079: 0001-speedhq-Align-blocks-variable-properly.patch

File 0001-speedhq-Align-blocks-variable-properly.patch, 897 bytes (added by Sesse, 10 years ago)
  • libavcodec/speedhq.c

    From 4944cd508b2188b9c8d1c99de6711d0bb6c04fcc Mon Sep 17 00:00:00 2001
    From: "Steinar H. Gunderson" <steinar+ffmpeg@gunderson.no>
    Date: Fri, 13 Jan 2017 19:04:25 +0100
    Subject: [PATCH] speedhq: Align blocks variable properly.
    
    Seemingly ff_clear_block_sse assumed that the block array is aligned,
    so make sure it is.
    ---
     libavcodec/speedhq.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c
    index 83a95a02dd..fcd1444e75 100644
    a b static inline int decode_dct_block(const SHQContext *s, GetBitContext *gb, int l  
    224224{
    225225    const int *quant_matrix = s->quant_matrix;
    226226    const uint8_t *scantable = s->intra_scantable.permutated;
    227     int16_t block[64];
     227    DECLARE_ALIGNED(16, int16_t, block)[64];
    228228    int dc_offset;
    229229
    230230    s->bdsp.clear_block(block);