diff mbox series

[FFmpeg-devel,12/13] avcodec/y41penc: Remove empty close function

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

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/y41penc.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Paul B Mahol Aug. 29, 2020, 6:06 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/y41penc.c | 6 ------
>  1 file changed, 6 deletions(-)
>

LGTM
diff mbox series

Patch

diff --git a/libavcodec/y41penc.c b/libavcodec/y41penc.c
index 63752e2b44..d7d301fab5 100644
--- a/libavcodec/y41penc.c
+++ b/libavcodec/y41penc.c
@@ -75,11 +75,6 @@  static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
     return 0;
 }
 
-static av_cold int y41p_encode_close(AVCodecContext *avctx)
-{
-    return 0;
-}
-
 AVCodec ff_y41p_encoder = {
     .name         = "y41p",
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
@@ -87,7 +82,6 @@  AVCodec ff_y41p_encoder = {
     .id           = AV_CODEC_ID_Y41P,
     .init         = y41p_encode_init,
     .encode2      = y41p_encode_frame,
-    .close        = y41p_encode_close,
     .pix_fmts     = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
                                                  AV_PIX_FMT_NONE },
 };