Mercurial > libavcodec.hg
comparison cavs.c @ 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 | 9bb2734f65d7 |
comparison
equal
deleted
inserted
replaced
3424:2bfb700e2084 | 3425:b8faae2c5d0c |
---|---|
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) { | 300 static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) { |
301 int y; | 301 int y; |
302 uint64_t a = *((uint64_t *)(&top[1])); | 302 uint64_t a = unaligned64(&top[1]); |
303 for(y=0;y<8;y++) { | 303 for(y=0;y<8;y++) { |
304 *((uint64_t *)(d+y*stride)) = a; | 304 *((uint64_t *)(d+y*stride)) = a; |
305 } | 305 } |
306 } | 306 } |
307 | 307 |