Mercurial > libavcodec.hg
changeset 3425:b8faae2c5d0c libavcodec
hopefully better for platforms not supporting misaligned read
author | stefang |
---|---|
date | Thu, 06 Jul 2006 19:23:21 +0000 |
parents | 2bfb700e2084 |
children | 8a199b35cf57 |
files | cavs.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cavs.c Thu Jul 06 19:21:00 2006 +0000 +++ b/cavs.c Thu Jul 06 19:23:21 2006 +0000 @@ -299,7 +299,7 @@ static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) { int y; - uint64_t a = *((uint64_t *)(&top[1])); + uint64_t a = unaligned64(&top[1]); for(y=0;y<8;y++) { *((uint64_t *)(d+y*stride)) = a; }