diff options
Diffstat (limited to 'libavcodec/mem.c')
-rw-r--r-- | libavcodec/mem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mem.c b/libavcodec/mem.c index 04fcd5b395..462d674e45 100644 --- a/libavcodec/mem.c +++ b/libavcodec/mem.c @@ -45,7 +45,9 @@ void *av_malloc(unsigned int size) { void *ptr; +#ifdef MEMALIGN_HACK int diff; +#endif /* lets disallow possible ambiguous cases */ if(size > INT_MAX) @@ -97,7 +99,10 @@ void *av_malloc(unsigned int size) */ void *av_realloc(void *ptr, unsigned int size) { +#ifdef MEMALIGN_HACK int diff; +#endif + /* lets disallow possible ambiguous cases */ if(size > INT_MAX) return NULL; |