summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-05 21:36:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-05 21:36:07 +0200
commite6c710600e1d474b53e52398969140f79052bfde (patch)
tree2388c77a1bd8dbcc737b9d475240b6875cf86779 /libavcodec
parent14d241b19dcde7808de7c3c631886f25f91f2008 (diff)
avcodec/svq3: add initialization which was removed from h264 init
This is needed for the svq3 code to work Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index a7a8f67f1c..edefe46c3c 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -893,6 +893,12 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
if ((ret = ff_h264_decode_init(avctx)) < 0)
goto fail;
+ ff_h264dsp_init(&h->h264dsp, 8, 1);
+ av_assert0(h->sps.bit_depth_chroma == 0);
+ ff_h264_pred_init(&h->hpc, h->avctx->codec_id, 8, 1);
+ ff_videodsp_init(&h->vdsp, 8);
+ h->sps.bit_depth_luma = avctx->bits_per_raw_sample = 8;
+
ff_hpeldsp_init(&s->hdsp, avctx->flags);
ff_tpeldsp_init(&s->tdsp);