Mercurial > libavformat.hg
diff avc.c @ 4792:dd9383951cb9 libavformat
Use intptr_t when casting pointers to int.
author | ramiro |
---|---|
date | Thu, 26 Mar 2009 01:34:02 +0000 |
parents | 765fe37ec45b |
children | 6ea4f08de89a |
line wrap: on
line diff
--- a/avc.c Wed Mar 25 18:19:20 2009 +0000 +++ b/avc.c Thu Mar 26 01:34:02 2009 +0000 @@ -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 )