diff mbox series

[FFmpeg-devel,11/13] avcodec/yuv4enc: Remove empty functions

Message ID 20200829175626.11682-11-andreas.rheinhardt@gmail.com
State Accepted
Commit beca89ed288244512e6e7084995363bfaf07035b
Headers show
Series [FFmpeg-devel,01/13] avcodec/cinepakenc: Cleanup generically after init failure | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Aug. 29, 2020, 5:56 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/yuv4enc.c | 12 ------------
 1 file changed, 12 deletions(-)

Comments

Paul B Mahol Aug. 29, 2020, 6:05 p.m. UTC | #1
On 8/29/20, Andreas Rheinhardt <andreas.rheinhardt@gmail.com> wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
> ---
>  libavcodec/yuv4enc.c | 12 ------------
>  1 file changed, 12 deletions(-)
>

LGTM
diff mbox series

Patch

diff --git a/libavcodec/yuv4enc.c b/libavcodec/yuv4enc.c
index f21b1f36ce..63a7fae964 100644
--- a/libavcodec/yuv4enc.c
+++ b/libavcodec/yuv4enc.c
@@ -23,11 +23,6 @@ 
 #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 },
 };