aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-01-22 12:45:35 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2013-01-22 17:32:07 -0800
commit0ee8293a77a6afad161e91ce1d43c4a57ce33a6a (patch)
tree5a71f6aa30a75fdccadfd7740ebe375c0818d78a /libavcodec
parent40cf1add12fa24834ed6925fd5b68af1322b1aca (diff)
downloadffmpeg-0ee8293a77a6afad161e91ce1d43c4a57ce33a6a.tar.gz
vp3dsp: don't do aligned reads on input.
The input is not guaranteed to be aligned.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp3dsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vp3dsp.c b/libavcodec/vp3dsp.c
index 1883099002..0ce6b81d98 100644
--- a/libavcodec/vp3dsp.c
+++ b/libavcodec/vp3dsp.c
@@ -282,11 +282,11 @@ static void put_no_rnd_pixels_l2(uint8_t *dst, const uint8_t *src1,
for (i = 0; i < h; i++) {
uint32_t a, b;
- a = AV_RN32A(&src1[i * stride]);
- b = AV_RN32A(&src2[i * stride]);
+ a = AV_RN32(&src1[i * stride]);
+ b = AV_RN32(&src2[i * stride]);
AV_WN32A(&dst[i * stride], no_rnd_avg32(a, b));
- a = AV_RN32A(&src1[i * stride + 4]);
- b = AV_RN32A(&src2[i * stride + 4]);
+ a = AV_RN32(&src1[i * stride + 4]);
+ b = AV_RN32(&src2[i * stride + 4]);
AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b));
}
}