forked from FFmpeg/FFmpeg
fix CHECKED_ALLOCZ(0)
Originally committed as revision 1993 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1e79606dd6
commit
dc939fd588
1 changed files with 1 additions and 1 deletions
|
@ -1129,7 +1129,7 @@ if(256*256*256*64%(tcount+tskip_count)==0){\
|
||||||
#define CHECKED_ALLOCZ(p, size)\
|
#define CHECKED_ALLOCZ(p, size)\
|
||||||
{\
|
{\
|
||||||
p= av_mallocz(size);\
|
p= av_mallocz(size);\
|
||||||
if(p==NULL){\
|
if(p==NULL && (size)!=0){\
|
||||||
perror("malloc");\
|
perror("malloc");\
|
||||||
goto fail;\
|
goto fail;\
|
||||||
}\
|
}\
|
||||||
|
|
Loading…
Add table
Reference in a new issue