diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-14 01:59:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-14 01:59:53 +0000 |
commit | 08cb1950209b53bf98bf2014ca584a6b0e138917 (patch) | |
tree | 23fff4440b5e2a42f2635f19686d35cbf3510314 /libavutil | |
parent | 9608652dc15ae83a36df8ec8962dd0cce24d87ca (diff) | |
download | ffmpeg-streaming-08cb1950209b53bf98bf2014ca584a6b0e138917.zip ffmpeg-streaming-08cb1950209b53bf98bf2014ca584a6b0e138917.tar.gz |
kill 3 more av_mallocz_static()
Originally committed as revision 8397 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/crc.c | 7 | ||||
-rw-r--r-- | libavutil/crc.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libavutil/crc.c b/libavutil/crc.c index baa605d..02fb860 100644 --- a/libavutil/crc.c +++ b/libavutil/crc.c @@ -21,10 +21,17 @@ #include "common.h" #include "crc.h" +#if LIBAVUTIL_VERSION_INT < (50<<16) AVCRC *av_crcEDB88320; AVCRC *av_crc04C11DB7; AVCRC *av_crc8005 ; AVCRC *av_crc07 ; +#else +AVCRC av_crcEDB88320[257]; +AVCRC av_crc04C11DB7[257]; +AVCRC av_crc8005 [257]; +AVCRC av_crc07 [257]; +#endif /** * Inits a crc table. diff --git a/libavutil/crc.h b/libavutil/crc.h index e739c30..1f64319 100644 --- a/libavutil/crc.h +++ b/libavutil/crc.h @@ -23,10 +23,17 @@ typedef uint32_t AVCRC; +#if LIBAVUTIL_VERSION_INT < (50<<16) extern AVCRC *av_crcEDB88320; extern AVCRC *av_crc04C11DB7; extern AVCRC *av_crc8005 ; extern AVCRC *av_crc07 ; +#else +extern AVCRC av_crcEDB88320[]; +extern AVCRC av_crc04C11DB7[]; +extern AVCRC av_crc8005 []; +extern AVCRC av_crc07 []; +#endif int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size); uint32_t av_crc(const AVCRC *ctx, uint32_t start_crc, const uint8_t *buffer, size_t length); |