Mercurial > libavcodec.hg
comparison cavs.c @ 5424:07844149dfa9 libavcodec
replacing the use of deprecated unaligned*() routines by LD64 and AV_RB32
author | romansh |
---|---|
date | Mon, 30 Jul 2007 18:05:46 +0000 |
parents | cb5d5d2ee6fd |
children | c16a59ef6a86 |
comparison
equal
deleted
inserted
replaced
5423:2c98d63a8956 | 5424:07844149dfa9 |
---|---|
210 } | 210 } |
211 } | 211 } |
212 | 212 |
213 static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) { | 213 static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) { |
214 int y; | 214 int y; |
215 uint64_t a = unaligned64(&top[1]); | 215 uint64_t a = LD64(&top[1]); |
216 for(y=0;y<8;y++) { | 216 for(y=0;y<8;y++) { |
217 *((uint64_t *)(d+y*stride)) = a; | 217 *((uint64_t *)(d+y*stride)) = a; |
218 } | 218 } |
219 } | 219 } |
220 | 220 |