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 /libavcodec | |
parent | 9608652dc15ae83a36df8ec8962dd0cce24d87ca (diff) | |
download | ffmpeg-08cb1950209b53bf98bf2014ca584a6b0e138917.tar.gz |
kill 3 more av_mallocz_static()
Originally committed as revision 8397 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 6573e3c810..74192caf21 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1189,9 +1189,11 @@ unsigned avcodec_build( void ) } static void init_crcs(void){ +#if LIBAVUTIL_VERSION_INT < (50<<16) av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257); av_crc8005 = av_mallocz_static(sizeof(AVCRC) * 257); av_crc07 = av_mallocz_static(sizeof(AVCRC) * 257); +#endif av_crc_init(av_crc04C11DB7, 0, 32, 0x04c11db7, sizeof(AVCRC)*257); av_crc_init(av_crc8005 , 0, 16, 0x8005 , sizeof(AVCRC)*257); av_crc_init(av_crc07 , 0, 8, 0x07 , sizeof(AVCRC)*257); |