Commit e6c71060 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/svq3: add initialization which was removed from h264 init

This is needed for the svq3 code to work
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 14d241b1
......@@ -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);
......
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