diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-03-13 23:30:28 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-03-13 23:30:28 +0000 |
commit | 2df6e978722d701edd241084633d6a03cded3cff (patch) | |
tree | 96eabd3db81f265a232600008b929654c276501d /libavcodec/dv.c | |
parent | e2e712e7c133978c1758cdebba537646ce5c363a (diff) | |
download | ffmpeg-2df6e978722d701edd241084633d6a03cded3cff.tar.gz |
kill a av_mallocz_static()
Originally committed as revision 8395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index b5f15df27a..779f353b4b 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -75,7 +75,7 @@ static void* dv_anchor[DV_ANCHOR_SIZE]; #endif /* XXX: also include quantization */ -static RL_VLC_ELEM *dv_rl_vlc; +static RL_VLC_ELEM dv_rl_vlc[1184]; /* VLC encoding lookup table */ static struct dv_vlc_pair { uint32_t vlc; @@ -154,10 +154,7 @@ static int dvvideo_init(AVCodecContext *avctx) to accelerate the parsing of partial codes */ init_vlc(&dv_vlc, TEX_VLC_BITS, j, new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2, 0); - - dv_rl_vlc = av_mallocz_static(dv_vlc.table_size * sizeof(RL_VLC_ELEM)); - if (!dv_rl_vlc) - return AVERROR(ENOMEM); + assert(dv_vlc.table_size == 1184); for(i = 0; i < dv_vlc.table_size; i++){ int code= dv_vlc.table[i][0]; |