1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dvdsubdec: Remove unnecessary close function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-05-07 06:33:11 +02:00
parent 5ee8359441
commit adf9dd1dec

View File

@ -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,
};