avcodec/mpeg12dec: Only initialize IDCT for IPU

This is all that is used. This is in preparation for further
commits that will extend ff_mpv_decode_init() in a way
that will make it possible to fail and require cleanup.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-04-22 01:57:56 +02:00
parent 183a67580b
commit 2f22fd7ec1
1 changed files with 2 additions and 1 deletions

View File

@ -2828,8 +2828,9 @@ static av_cold int ipu_decode_init(AVCodecContext *avctx)
MpegEncContext *m = &s->m;
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
m->avctx = avctx;
ff_mpv_decode_init(m, avctx);
ff_idctdsp_init(&m->idsp, avctx);
ff_mpeg12_init_vlcs();
for (int i = 0; i < 64; i++) {