diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-02-19 16:18:17 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-02-19 16:18:17 +0000 |
commit | 591de5cf3531277a4b787e162bef8b2591ad9f3f (patch) | |
tree | 75f94df518014cf5d897fec3203e89ccad178804 /libavformat/avc.c | |
parent | d937cd0ed2568207c0e691b21bc9c090e4db5d26 (diff) | |
download | ffmpeg-591de5cf3531277a4b787e162bef8b2591ad9f3f.tar.gz |
Fix misplaced const, avoids a cast-discards-qualifiers warning
Originally committed as revision 12146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avc.c')
-rw-r--r-- | libavformat/avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avc.c b/libavformat/avc.c index 6cffe15279..0c180c86b7 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -31,7 +31,7 @@ const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end) } 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 |