summaryrefslogtreecommitdiff
path: root/libavcodec/avdct.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 /libavcodec/avdct.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 'libavcodec/avdct.c')
-rw-r--r--libavcodec/avdct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c
index 7c761cf39a..e8fa41f73b 100644
--- a/libavcodec/avdct.c
+++ b/libavcodec/avdct.c
@@ -120,6 +120,7 @@ int avcodec_dct_init(AVDCT *dsp)
PixblockDSPContext pdsp;
ff_pixblockdsp_init(&pdsp, avctx);
COPY(pdsp, get_pixels);
+ COPY(pdsp, get_pixels_unaligned);
}
#endif