Use this in vf_spp.c, where the get_pixels operation is done on unaligned source addresses. Hook up the x86 (mmx and sse) versions of get_pixels to this function pointer, as those implementations seem to support unaligned use. This fixes fate-filter-spp on armv7.
Showing the changes to libavfilter (1 of 6 files). Show all
Unified · Split
| @@ -283,7 +283,7 @@ static void filter(SPPContext *p, uint8_t *dst, uint8_t *src, · 282 unmodified lines | ||
| 283 | 283 | const int x1 = x + offset[i + count - 1][0]; |
| 284 | 284 | const int y1 = y + offset[i + count - 1][1]; |
| 285 | 285 | const int index = x1 + y1*linesize; |
| 286 | − p->dct->get_pixels(block, p->src + sample_bytes*index, sample_bytes*linesize); | |
| 286 | + p->dct->get_pixels_unaligned(block, p->src + sample_bytes*index, sample_bytes*linesize); | |
| 287 | 287 | p->dct->fdct(block); |
| 288 | 288 | p->requantize(block2, block, qp, p->dct->idct_permutation); |
| 289 | 289 | p->dct->idct(block2); |