Browse code

Fix misplaced const, avoids a cast-discards-qualifiers warning

Originally committed as revision 12146 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger authored on 2008/02/20 01:18:17
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@ const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end)
31 31
     }
32 32
 
33 33
     for( end -= 3; p < end; p += 4 ) {
34
-        const uint32_t x = *(uint32_t*)p;
34
+        uint32_t x = *(const uint32_t*)p;
35 35
 //      if( (x - 0x01000100) & (~x) & 0x80008000 ) // little endian
36 36
 //      if( (x - 0x00010001) & (~x) & 0x00800080 ) // big endian
37 37
         if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic