Browse Source

h264pred: fix one more aliasing violation.

tags/n0.8
Ronald S. Bultje Michael Niedermayer 14 years ago
parent
commit
c77b858c4c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/h264pred_template.c

+ 4
- 2
libavcodec/h264pred_template.c View File

@@ -695,10 +695,12 @@ static void FUNCC(pred8x8l_horizontal)(uint8_t *p_src, int has_topleft, int has_
{
pixel *src = (pixel*)p_src;
int stride = p_stride>>(sizeof(pixel)-1);
pixel4 a;

PREDICT_8x8_LOAD_LEFT;
#define ROW(y) ((pixel4*)(src+y*stride))[0] =\
((pixel4*)(src+y*stride))[1] = PIXEL_SPLAT_X4(l##y)
#define ROW(y) a = PIXEL_SPLAT_X4(l##y); \
AV_WN4PA(src+y*stride, a); \
AV_WN4PA(src+y*stride+4, a);
ROW(0); ROW(1); ROW(2); ROW(3); ROW(4); ROW(5); ROW(6); ROW(7);
#undef ROW
}


Loading…
Cancel
Save