From f49f6e88895bef1fd2cc0226b9007f2b2932d6cc Mon Sep 17 00:00:00 2001 From: Roman Shaposhnik Date: Mon, 30 Jul 2007 18:05:46 +0000 Subject: [PATCH] replacing the use of deprecated unaligned*() routines by LD64 and AV_RB32 Originally committed as revision 9834 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cavs.c | 2 +- libavcodec/mpegvideo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index 87723c571..902d82252 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -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; } diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 815228825..736680852 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; } -- 2.11.0