summaryrefslogtreecommitdiff
path: root/libavcodec/dvdsubdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-07 06:33:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-12 06:00:14 +0200
commitadf9dd1dec3cdcb57bac42ff43e7d02ca9aeb4e1 (patch)
tree45dae9da133c47b684ece23ce42782f37de0617d /libavcodec/dvdsubdec.c
parent5ee835944134a2b264c365c7dd59ff206761ae31 (diff)
downloadffmpeg-adf9dd1dec3cdcb57bac42ff43e7d02ca9aeb4e1.tar.gz
avcodec/dvdsubdec: Remove unnecessary close function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dvdsubdec.c')
-rw-r--r--libavcodec/dvdsubdec.c7
1 files changed, 0 insertions, 7 deletions
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,
};