History

avcodec/mpeg12dec: Remove unnecessary FFCodec.close

The ipu decoder never calls ff_mpv_common_init() or allocates anything else that would need to be freed.

Andreas Rheinhardt committed 2 years ago

Commit 00e48e61 parent f4831351 file · +0 −11Browse files

Unified · Split

libavcodec/mpeg12dec.c+0−11
@@ -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
2871static 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
2880const FFCodec ff_ipu_decoder = {2871const 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};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t