ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@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, }; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".