summaryrefslogtreecommitdiff
path: root/libavformat/avc.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-03-26 01:34:02 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-03-26 01:34:02 +0000
commitd4efacff64f8b07c24eabb38f855ff06a10dcc31 (patch)
tree38c75992a3c97211d804d6ef061d458b8d9fc405 /libavformat/avc.c
parentbefa8e665c460244ba523131e6c22b19ab269e77 (diff)
Use intptr_t when casting pointers to int.
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avc.c')
-rw-r--r--libavformat/avc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avc.c b/libavformat/avc.c
index 6ecea38a47..578e7d0462 100644
--- a/libavformat/avc.c
+++ b/libavformat/avc.c
@@ -25,7 +25,7 @@
const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end)
{
- const uint8_t *a = p + 4 - ((long)p & 3);
+ const uint8_t *a = p + 4 - ((intptr_t)p & 3);
for( end -= 3; p < a && p < end; p++ ) {
if( p[0] == 0 && p[1] == 0 && p[2] == 1 )