diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-06-28 22:51:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-06-28 22:51:42 +0000 |
commit | dc939fd5883504adf102a16afef5f0a40ca24fd0 (patch) | |
tree | 9bf8820294b2a24ad156e3e250a8e61c9cfd8440 /libavcodec | |
parent | 1e79606dd64d33e0afb045ed57dfe263c910916f (diff) | |
download | ffmpeg-dc939fd5883504adf102a16afef5f0a40ca24fd0.tar.gz |
fix CHECKED_ALLOCZ(0)
Originally committed as revision 1993 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index bbbc613dd2..ed1ba4ea04 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -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;\ }\ |