summaryrefslogtreecommitdiff
path: root/libavfilter/vf_spp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-05-12 11:22:45 +0300
committerMartin Storsjö <martin@martin.st>2020-05-13 13:20:08 +0300
commit353aecbb28e3976b6f4d7a4262398852cd67b5a2 (patch)
treed76f7b9f9a5349f1ecbd4b35340427a849aa091a /libavfilter/vf_spp.c
parentb12b05374f7025167e2c43449ceb8ba3f0a6083f (diff)
pixblockdsp, avdct: Add get_pixels_unaligned
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. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter/vf_spp.c')
-rw-r--r--libavfilter/vf_spp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c
index 6bee91b309..a83b1195c0 100644
--- a/libavfilter/vf_spp.c
+++ b/libavfilter/vf_spp.c
@@ -283,7 +283,7 @@ static void filter(SPPContext *p, uint8_t *dst, uint8_t *src,
const int x1 = x + offset[i + count - 1][0];
const int y1 = y + offset[i + count - 1][1];
const int index = x1 + y1*linesize;
- p->dct->get_pixels(block, p->src + sample_bytes*index, sample_bytes*linesize);
+ p->dct->get_pixels_unaligned(block, p->src + sample_bytes*index, sample_bytes*linesize);
p->dct->fdct(block);
p->requantize(block2, block, qp, p->dct->idct_permutation);
p->dct->idct(block2);