The ipu decoder never calls ff_mpv_common_init() or allocates anything else that would need to be freed.
Unified · Split
| @@ -2868,15 +2868,6 @@ static av_cold int ipu_decode_init(AVCodecContext *avctx) · 2867 unmodified lines | |||
| 2868 | return 0; | 2868 | return 0; |
| 2869 | } | 2869 | } |
| 2870 | 2870 | ||
| 2871 | static av_cold int ipu_decode_end(AVCodecContext *avctx) | ||
| 2872 | { | ||
| 2873 | IPUContext *s = avctx->priv_data; | ||
| 2874 | |||
| 2875 | ff_mpv_common_end(&s->m); | ||
| 2876 | |||
| 2877 | return 0; | ||
| 2878 | } | ||
| 2879 | |||
| 2880 | const FFCodec ff_ipu_decoder = { | 2871 | const FFCodec ff_ipu_decoder = { |
| 2881 | .p.name = "ipu", | 2872 | .p.name = "ipu", |
| 2882 | CODEC_LONG_NAME("IPU Video"), | 2873 | CODEC_LONG_NAME("IPU Video"), |
| @@ -2885,7 +2876,5 @@ const FFCodec ff_ipu_decoder = { · 2 unmodified lines | |||
| 2885 | .priv_data_size = sizeof(IPUContext), | 2876 | .priv_data_size = sizeof(IPUContext), |
| 2886 | .init = ipu_decode_init, | 2877 | .init = ipu_decode_init, |
| 2887 | FF_CODEC_DECODE_CB(ipu_decode_frame), | 2878 | FF_CODEC_DECODE_CB(ipu_decode_frame), |
| 2888 | .close = ipu_decode_end, | ||
| 2889 | .p.capabilities = AV_CODEC_CAP_DR1, | 2879 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 2890 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, | ||
| 2891 | }; | 2880 | }; |