]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/yuv4enc: Remove empty functions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 29 Aug 2020 15:55:15 +0000 (17:55 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 30 Aug 2020 01:06:18 +0000 (03:06 +0200)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/yuv4enc.c

index f21b1f36ce0d7635545678137791895b25ed29bc..63a7fae9647c604cc14b8233d4b922650bb62f03 100644 (file)
 #include "avcodec.h"
 #include "internal.h"
 
-static av_cold int yuv4_encode_init(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 static int yuv4_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
                              const AVFrame *pic, int *got_packet)
 {
@@ -62,18 +57,11 @@ static int yuv4_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     return 0;
 }
 
-static av_cold int yuv4_encode_close(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 AVCodec ff_yuv4_encoder = {
     .name         = "yuv4",
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed 4:2:0"),
     .type         = AVMEDIA_TYPE_VIDEO,
     .id           = AV_CODEC_ID_YUV4,
-    .init         = yuv4_encode_init,
     .encode2      = yuv4_encode_frame,
-    .close        = yuv4_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE },
 };