mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
replacing the use of deprecated unaligned*() routines by LD64 and AV_RB32
Originally committed as revision 9834 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6654296c30
commit
f49f6e8889
@ -212,7 +212,7 @@ void ff_cavs_load_intra_pred_chroma(AVSContext *h) {
|
||||
|
||||
static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int stride) {
|
||||
int y;
|
||||
uint64_t a = unaligned64(&top[1]);
|
||||
uint64_t a = LD64(&top[1]);
|
||||
for(y=0;y<8;y++) {
|
||||
*((uint64_t *)(d+y*stride)) = a;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end
|
||||
}
|
||||
|
||||
p= FFMIN(p, end)-4;
|
||||
*state= be2me_32(unaligned32(p));
|
||||
*state= AV_RB32(p);
|
||||
|
||||
return p+4;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user