aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_enc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-30 04:09:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-05-16 01:37:35 +0200
commit505510acdad5bc08b67e01d66c5b339c8fe27d39 (patch)
tree41428d8a6568a652b2ac4e1cbea2e992d3240626 /libavcodec/mpegvideo_enc.c
parentbc81a797c47257d51111f24753544ee314f50d18 (diff)
downloadffmpeg-505510acdad5bc08b67e01d66c5b339c8fe27d39.tar.gz
avcodec/mpegvideo: Move parent to MPVEncContext
This is more type-safe and avoids having parent contexts when unnecessary. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r--libavcodec/mpegvideo_enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index ce9315c1b8..6e9533ebc9 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1024,6 +1024,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
/* ff_mpv_common_init() will copy (memdup) the contents of the main slice
* to the slice contexts, so we initialize various fields of it
* before calling ff_mpv_common_init(). */
+ s->parent = m;
ff_mpv_idct_init(&s->c);
init_unquantize(&s->c, avctx);
ff_fdctdsp_init(&s->fdsp, avctx);