aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mem.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2005-02-24 19:08:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-02-24 19:08:50 +0000
commit88730be65153f4a59916d971842fdaed3e0fd72b (patch)
tree1f49c5812d2382abb53df216aab8cabc3c3f56b9 /libavcodec/mem.c
parent53513831da58cae7603dc01270c1cf8e4252eba0 (diff)
downloadffmpeg-88730be65153f4a59916d971842fdaed3e0fd72b.tar.gz
kill warnings patch by (Måns Rullgård <mru inprovide com>)
Originally committed as revision 3977 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mem.c')
-rw-r--r--libavcodec/mem.c5
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;