aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-04-18 18:47:16 +0200
committerDiego Biurrun <diego@biurrun.de>2012-04-19 14:35:22 +0200
commit2b98377935384ecd22c2cd26106b9e03a6c9f598 (patch)
treebda5f2ac649efaffe1ac68d0357e1547986b660f /libavcodec
parentf2e44655221d5af8cf88043cc84626dda5591c5c (diff)
downloadffmpeg-2b98377935384ecd22c2cd26106b9e03a6c9f598.tar.gz
dv: Initialize encoder tables during encoder init.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 034daac2d7..9c0893a47a 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -294,8 +294,6 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx)
ff_dv_rl_vlc[i].run = run;
}
ff_free_vlc(&dv_vlc);
-
- dv_vlc_map_tableinit();
}
/* Generic DSP setup */
@@ -338,6 +336,8 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx)
return AVERROR(EINVAL);
}
+ dv_vlc_map_tableinit();
+
return ff_dvvideo_init(avctx);
}