mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 04:47:12 +00:00
avcodec/huffyuvencdsp: try to fix misaligned access
Should fix fate on MIPS Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cddbf95c5f
commit
3f42434600
@ -30,7 +30,7 @@ static void diff_bytes_c(uint8_t *dst, const uint8_t *src1, const uint8_t *src2,
|
|||||||
long i;
|
long i;
|
||||||
|
|
||||||
#if !HAVE_FAST_UNALIGNED
|
#if !HAVE_FAST_UNALIGNED
|
||||||
if ((long) src2 & (sizeof(long) - 1)) {
|
if (((long)src1 | (long)src2) & (sizeof(long) - 1)) {
|
||||||
for (i = 0; i + 7 < w; i += 8) {
|
for (i = 0; i + 7 < w; i += 8) {
|
||||||
dst[i + 0] = src1[i + 0] - src2[i + 0];
|
dst[i + 0] = src1[i + 0] - src2[i + 0];
|
||||||
dst[i + 1] = src1[i + 1] - src2[i + 1];
|
dst[i + 1] = src1[i + 1] - src2[i + 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user