[FFmpeg-cvslog] avcodec/dvdsubdec: Remove unnecessary close function
Andreas Rheinhardt
git at videolan.org
Wed May 12 07:48:18 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri May 7 06:33:11 2021 +0200| [adf9dd1dec3cdcb57bac42ff43e7d02ca9aeb4e1] | committer: Andreas Rheinhardt
avcodec/dvdsubdec: Remove unnecessary close function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=adf9dd1dec3cdcb57bac42ff43e7d02ca9aeb4e1
---
libavcodec/dvdsubdec.c | 7 -------
1 file changed, 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,
};
More information about the ffmpeg-cvslog
mailing list