diff mbox series

[FFmpeg-devel,19/20] avcodec/dvdsubdec: Remove unnecessary close function

Message ID HE1PR0301MB215455AEA47F78633769B92C8F579@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit adf9dd1dec3cdcb57bac42ff43e7d02ca9aeb4e1
Headers show
Series [FFmpeg-devel,01/20] avcodec/wma: Remove nonsense volatile
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt May 7, 2021, 6:46 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/dvdsubdec.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index b0127951c5..e164745561 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -739,12 +739,6 @@  static void dvdsub_flush(AVCodecContext *avctx)
     ctx->buf_size = 0;
 }
 
-static av_cold int dvdsub_close(AVCodecContext *avctx)
-{
-    dvdsub_flush(avctx);
-    return 0;
-}
-
 #define OFFSET(field) offsetof(DVDSubContext, field)
 #define SD AV_OPT_FLAG_SUBTITLE_PARAM | AV_OPT_FLAG_DECODING_PARAM
 static const AVOption options[] = {
@@ -769,6 +763,5 @@  const AVCodec ff_dvdsub_decoder = {
     .init           = dvdsub_init,
     .decode         = dvdsub_decode,
     .flush          = dvdsub_flush,
-    .close          = dvdsub_close,
     .priv_class     = &dvdsub_class,
 };