changeset 3050:be4d4abb3eed libavformat

Fix misplaced const, avoids a cast-discards-qualifiers warning
author reimar
date Tue, 19 Feb 2008 16:18:17 +0000
parents df47846972da
children 3ecfaa7d0f3b
files avc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avc.c	Tue Feb 19 16:08:52 2008 +0000
+++ b/avc.c	Tue Feb 19 16:18:17 2008 +0000
@@ -31,7 +31,7 @@
     }
 
     for( end -= 3; p < end; p += 4 ) {
-        const uint32_t x = *(uint32_t*)p;
+        uint32_t x = *(const uint32_t*)p;
 //      if( (x - 0x01000100) & (~x) & 0x80008000 ) // little endian
 //      if( (x - 0x00010001) & (~x) & 0x00800080 ) // big endian
         if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic