Ticket #7226: 11_fix_vf_blend_unaligned_test.patch

File 11_fix_vf_blend_unaligned_test.patch, 1.1 KB (added by Lastique, 8 years ago)

The patch to fix vf_blend test

  • tests/checkasm/vf_blend.c

    https://trac.ffmpeg.org/ticket/7226
    
    old new  
    7171        w = WIDTH / depth;                                                                 \
    7272                                                                                           \
    7373        for (i = 0; i < BUF_UNITS - 1; i++) {                                              \
    74             int src_offset = i * SIZE_PER_UNIT + i; /* Test various alignments */          \
     74            int src_offset = i * SIZE_PER_UNIT + (BUF_UNITS - 1 - i) * depth; /* Test various alignments */  \
    7575            int dst_offset = i * SIZE_PER_UNIT; /* dst must be aligned */                  \
    7676            randomize_buffers();                                                           \
    7777            call_ref(top1 + src_offset, w, bot1 + src_offset, w,                           \