aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-22 01:57:56 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:43:48 +0200
commit2f22fd7ec18e7662e12955d719fe6a9589476602 (patch)
treea385a9fd8aeffb849ef777e8847abd4cd790d8c3 /libavcodec
parent183a67580b61fd83dd0d70ea57e31d6681392e5a (diff)
downloadffmpeg-2f22fd7ec18e7662e12955d719fe6a9589476602.tar.gz
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index b5605cb93d..d3005d032f 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -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++) {