diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-10 09:35:32 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-10 09:35:32 +0000 |
commit | 5c91a6755b6412c918e20ff4735ca30f38a12569 (patch) | |
tree | 054521cdfc6d752e89883ef3fcfc05d6c31fd94c /libavcodec/utils.c | |
parent | cd66005ddaebba2d6cb3b4eae75f70ae2446b204 (diff) | |
download | ffmpeg-5c91a6755b6412c918e20ff4735ca30f38a12569.tar.gz |
* static,const,compiler warning cleanup
Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 554c9cd157..f66e4c6a51 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -46,7 +46,7 @@ char *av_strdup(const char *s) /** * realloc which does nothing if the block is large enough */ -void *av_fast_realloc(void *ptr, int *size, int min_size) +void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size) { if(min_size < *size) return ptr; @@ -63,7 +63,7 @@ static char*** array_static = NULL; static const unsigned int grow_static = 64; // ^2 void *__av_mallocz_static(void** location, unsigned int size) { - int l = (last_static + grow_static) & ~(grow_static - 1); + unsigned int l = (last_static + grow_static) & ~(grow_static - 1); void *ptr = av_mallocz(size); if (!ptr) return NULL; |