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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpeg12dec.c+0−11
@@ -2868,15 +2868,6 @@ static av_cold int ipu_decode_init(AVCodecContext *avctx) · 2867 unmodified lines
28682868 return 0;
28692869 }
28702870
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−
28802871 const FFCodec ff_ipu_decoder = {
28812872 .p.name = "ipu",
28822873 CODEC_LONG_NAME("IPU Video"),
@@ -2885,7 +2876,5 @@ const FFCodec ff_ipu_decoder = { · 2 unmodified lines
28852876 .priv_data_size = sizeof(IPUContext),
28862877 .init = ipu_decode_init,
28872878 FF_CODEC_DECODE_CB(ipu_decode_frame),
2888− .close = ipu_decode_end,
28892879 .p.capabilities = AV_CODEC_CAP_DR1,
2890− .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
28912880 };

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