Commit 2b983779 authored by Diego Biurrun's avatar Diego Biurrun

dv: Initialize encoder tables during encoder init.

parent f2e44655
...@@ -294,8 +294,6 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx) ...@@ -294,8 +294,6 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx)
ff_dv_rl_vlc[i].run = run; ff_dv_rl_vlc[i].run = run;
} }
ff_free_vlc(&dv_vlc); ff_free_vlc(&dv_vlc);
dv_vlc_map_tableinit();
} }
/* Generic DSP setup */ /* Generic DSP setup */
...@@ -338,6 +336,8 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx) ...@@ -338,6 +336,8 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx)
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
dv_vlc_map_tableinit();
return ff_dvvideo_init(avctx); return ff_dvvideo_init(avctx);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment