diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-02-07 11:04:24 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-06-27 05:03:06 -0700 |
commit | e63b818dbe6060b606ae10eb184859f8b97d2353 (patch) | |
tree | 9a475b13c025a808121584e5c124efb93205cbf5 /libavcodec/dvenc.c | |
parent | d2869aea0494d3a20d53d5034cd41dbb488eb133 (diff) | |
download | ffmpeg-e63b818dbe6060b606ae10eb184859f8b97d2353.tar.gz |
dv: Properly split decoder and encoder initialization
Diffstat (limited to 'libavcodec/dvenc.c')
-rw-r--r-- | libavcodec/dvenc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c index 94fb7eaf6f..5b013adf51 100644 --- a/libavcodec/dvenc.c +++ b/libavcodec/dvenc.c @@ -28,6 +28,7 @@ #include "libavutil/pixdesc.h" #include "config.h" #include "avcodec.h" +#include "dsputil.h" #include "internal.h" #include "put_bits.h" #include "dv.h" @@ -36,6 +37,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx) { DVVideoContext *s = avctx->priv_data; + DSPContext dsp; int ret; s->sys = avpriv_dv_codec_profile(avctx); @@ -58,6 +60,15 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx) dv_vlc_map_tableinit(); + ff_dsputil_init(&dsp, avctx); + ff_set_cmp(&dsp, dsp.ildct_cmp, avctx->ildct_cmp); + + s->get_pixels = dsp.get_pixels; + s->ildct_cmp = dsp.ildct_cmp[5]; + + s->fdct[0] = dsp.fdct; + s->fdct[1] = dsp.fdct248; + return ff_dvvideo_init(avctx); } |