[FFmpeg-cvslog] r15595 - trunk/libavcodec/aac_parser.c

mru subversion
Sat Oct 11 13:21:45 CEST 2008


Author: mru
Date: Sat Oct 11 13:21:45 2008
New Revision: 15595

Log:
aac_parser: fix strict aliasing violation

Modified:
   trunk/libavcodec/aac_parser.c

Modified: trunk/libavcodec/aac_parser.c
==============================================================================
--- trunk/libavcodec/aac_parser.c	(original)
+++ trunk/libavcodec/aac_parser.c	Sat Oct 11 13:21:45 2008
@@ -32,9 +32,10 @@ static int aac_sync(uint64_t state, AACA
 {
     GetBitContext bits;
     int size, rdb, ch, sr;
-    uint64_t tmp = be2me_64(state);
+    uint8_t tmp[8];
 
-    init_get_bits(&bits, ((uint8_t *)&tmp)+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
+    AV_WB64(tmp, state);
+    init_get_bits(&bits, tmp+8-AAC_HEADER_SIZE, AAC_HEADER_SIZE * 8);
 
     if(get_bits(&bits, 12) != 0xfff)
         return 0;




More information about the ffmpeg-cvslog mailing list