aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-14 12:15:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-14 12:15:34 +0000
commit6bd10f2de52e4ad3856d9a1890a387c9d50b3712 (patch)
treec2546ee383595925f8fbc1452a4693f8e16466aa /libavcodec/dv.c
parentb21c9af936c543cb4003d7aeb90907001305490e (diff)
downloadffmpeg-6bd10f2de52e4ad3856d9a1890a387c9d50b3712.tar.gz
kill av_mallocz_static()
Originally committed as revision 8400 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 779f353b4b..2bcd50755d 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -80,7 +80,7 @@ static RL_VLC_ELEM dv_rl_vlc[1184];
static struct dv_vlc_pair {
uint32_t vlc;
uint8_t size;
-} (*dv_vlc_map)[DV_VLC_MAP_LEV_SIZE] = NULL;
+} dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE];
static void dv_build_unquantize_tables(DVVideoContext *s, uint8_t* perm)
{
@@ -123,10 +123,6 @@ static int dvvideo_init(AVCodecContext *avctx)
done = 1;
- dv_vlc_map = av_mallocz_static(DV_VLC_MAP_LEV_SIZE*DV_VLC_MAP_RUN_SIZE*sizeof(struct dv_vlc_pair));
- if (!dv_vlc_map)
- return AVERROR(ENOMEM);
-
/* dv_anchor lets each thread know its Id */
for (i=0; i<DV_ANCHOR_SIZE; i++)
dv_anchor[i] = (void*)(size_t)i;