diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-29 16:26:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-29 16:26:38 +0200 |
commit | 3f42434600f277598556cda981dc0492ec151bdf (patch) | |
tree | b27c8c000f4774c5c910e20fc350591ded40dcb5 /libavcodec/huffyuvencdsp.c | |
parent | cddbf95c5f0dea1bb1a18271393ad2a020883fe4 (diff) | |
download | ffmpeg-3f42434600f277598556cda981dc0492ec151bdf.tar.gz |
avcodec/huffyuvencdsp: try to fix misaligned access
Should fix fate on MIPS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvencdsp.c')
-rw-r--r-- | libavcodec/huffyuvencdsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuvencdsp.c b/libavcodec/huffyuvencdsp.c index 1f9256b941..95fcc19582 100644 --- a/libavcodec/huffyuvencdsp.c +++ b/libavcodec/huffyuvencdsp.c @@ -30,7 +30,7 @@ static void diff_bytes_c(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, long i; #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) { dst[i + 0] = src1[i + 0] - src2[i + 0]; dst[i + 1] = src1[i + 1] - src2[i + 1]; |