diff mbox series

[FFmpeg-devel,08/15] avcodec/mpeg12dec: Remove unnecessary FFCodec.close

Message ID GV1P250MB0737972F78BB8EAE4D3E9E138F032@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 00e48e6da8247fd59a6fe27a809b09ef806c447c
Headers show
Series [FFmpeg-devel,01/15] avcodec/mpegvideo_enc: Don't update current_picture unnecessarily | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt April 5, 2024, 12:41 p.m. UTC
The ipu decoder never calls ff_mpv_common_init() or allocates
anything else that would need to be freed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpeg12dec.c | 11 -----------
 1 file changed, 11 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index 337654c88d..45627e702d 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2868,15 +2868,6 @@  static av_cold int ipu_decode_init(AVCodecContext *avctx)
     return 0;
 }
 
-static av_cold int ipu_decode_end(AVCodecContext *avctx)
-{
-    IPUContext *s = avctx->priv_data;
-
-    ff_mpv_common_end(&s->m);
-
-    return 0;
-}
-
 const FFCodec ff_ipu_decoder = {
     .p.name         = "ipu",
     CODEC_LONG_NAME("IPU Video"),
@@ -2885,7 +2876,5 @@  const FFCodec ff_ipu_decoder = {
     .priv_data_size = sizeof(IPUContext),
     .init           = ipu_decode_init,
     FF_CODEC_DECODE_CB(ipu_decode_frame),
-    .close          = ipu_decode_end,
     .p.capabilities = AV_CODEC_CAP_DR1,
-    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP,
 };