[FFmpeg-cvslog] avcodec/v3/408enc: Remove empty close functions

Andreas Rheinhardt git at videolan.org
Fri Oct 16 01:59:22 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Oct 13 09:08:32 2020 +0200| [753e450a71e78eecf2aa23fe8b52dcec69490d5f] | committer: Andreas Rheinhardt

avcodec/v3/408enc: Remove empty close functions

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=753e450a71e78eecf2aa23fe8b52dcec69490d5f
---

 libavcodec/v308enc.c | 6 ------
 libavcodec/v408enc.c | 7 -------
 2 files changed, 13 deletions(-)

diff --git a/libavcodec/v308enc.c b/libavcodec/v308enc.c
index 29b7f8bedd..0891251dea 100644
--- a/libavcodec/v308enc.c
+++ b/libavcodec/v308enc.c
@@ -68,11 +68,6 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     return 0;
 }
 
-static av_cold int v308_encode_close(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 AVCodec ff_v308_encoder = {
     .name         = "v308",
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:4:4"),
@@ -80,6 +75,5 @@ AVCodec ff_v308_encoder = {
     .id           = AV_CODEC_ID_V308,
     .init         = v308_encode_init,
     .encode2      = v308_encode_frame,
-    .close        = v308_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE },
 };
diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c
index a2ab66d911..d2d84d9c40 100644
--- a/libavcodec/v408enc.c
+++ b/libavcodec/v408enc.c
@@ -73,11 +73,6 @@ static int v408_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     return 0;
 }
 
-static av_cold int v408_encode_close(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 #if CONFIG_AYUV_ENCODER
 AVCodec ff_ayuv_encoder = {
     .name         = "ayuv",
@@ -86,7 +81,6 @@ AVCodec ff_ayuv_encoder = {
     .id           = AV_CODEC_ID_AYUV,
     .init         = v408_encode_init,
     .encode2      = v408_encode_frame,
-    .close        = v408_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE },
 };
 #endif
@@ -98,7 +92,6 @@ AVCodec ff_v408_encoder = {
     .id           = AV_CODEC_ID_V408,
     .init         = v408_encode_init,
     .encode2      = v408_encode_frame,
-    .close        = v408_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVA444P, AV_PIX_FMT_NONE },
 };
 #endif



More information about the ffmpeg-cvslog mailing list