changeset 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 2c98d63a8956
children 1fdfea5024a7
files cavs.c mpegvideo.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cavs.c	Mon Jul 30 13:58:17 2007 +0000
+++ b/cavs.c	Mon Jul 30 18:05:46 2007 +0000
@@ -212,7 +212,7 @@
 
 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;
     }
--- a/mpegvideo.c	Mon Jul 30 13:58:17 2007 +0000
+++ b/mpegvideo.c	Mon Jul 30 18:05:46 2007 +0000
@@ -124,7 +124,7 @@
     }
 
     p= FFMIN(p, end)-4;
-    *state=  be2me_32(unaligned32(p));
+    *state= AV_RB32(p);
 
     return p+4;
 }