fix CHECKED_ALLOCZ(0)
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 28 Jun 2003 22:51:42 +0000 (22:51 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 28 Jun 2003 22:51:42 +0000 (22:51 +0000)
Originally committed as revision 1993 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/common.h

index bbbc613..ed1ba4e 100644 (file)
@@ -1129,7 +1129,7 @@ if(256*256*256*64%(tcount+tskip_count)==0){\
 #define CHECKED_ALLOCZ(p, size)\
 {\
     p= av_mallocz(size);\
-    if(p==NULL){\
+    if(p==NULL && (size)!=0){\
         perror("malloc");\
         goto fail;\
     }\