summaryrefslogtreecommitdiff
path: root/libavcodec/dvenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-27 19:13:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-27 19:13:34 +0200
commit3ac51145304f9996152a80f5a191ced7b857a252 (patch)
tree4dfcddd2c641e53647a105fab3f32eede7173557 /libavcodec/dvenc.c
parent6d2df3c00a7899e9c06e3a460d64e4d0ccde0fae (diff)
parente63b818dbe6060b606ae10eb184859f8b97d2353 (diff)
Merge commit 'e63b818dbe6060b606ae10eb184859f8b97d2353'
* commit 'e63b818dbe6060b606ae10eb184859f8b97d2353': dv: Properly split decoder and encoder initialization Conflicts: libavcodec/dv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvenc.c')
-rw-r--r--libavcodec/dvenc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index 4a1103860d..d1e7707b02 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);
@@ -62,6 +64,16 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
dv_vlc_map_tableinit();
+ memset(&dsp,0, sizeof(dsp));
+ 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);
}