Browse Source

vp3dsp: don't do aligned reads on input.

The input is not guaranteed to be aligned.
tags/n1.2
Ronald S. Bultje 12 years ago
parent
commit
0ee8293a77
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/vp3dsp.c

+ 4
- 4
libavcodec/vp3dsp.c View File

@@ -282,11 +282,11 @@ static void put_no_rnd_pixels_l2(uint8_t *dst, const uint8_t *src1,
for (i = 0; i < h; i++) { for (i = 0; i < h; i++) {
uint32_t a, b; 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)); 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)); AV_WN32A(&dst[i * stride + 4], no_rnd_avg32(a, b));
} }
} }


Loading…
Cancel
Save