[FFmpeg-cvslog] avcodec/zmbvenc: Remove redundant pixel format check

Andreas Rheinhardt git at videolan.org
Wed Sep 29 18:02:17 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Sep 28 14:01:04 2021 +0200| [d619e82e973c40137a56fa4ba720382b1f688a43] | committer: Andreas Rheinhardt

avcodec/zmbvenc: Remove redundant pixel format check

ff_encode_preinit() already checked the pixel format via
AVCodec.pix_fmts.

Reviewed-by: Tomas Härdin <tjoppen at acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/zmbvenc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index b431476241..8efdbc963e 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -347,9 +347,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
         c->fmt = ZMBV_FMT_32BPP;
         c->bypp = 4;
         break;
-    default:
-        av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
-        return AVERROR(EINVAL);
     }
 
     /* Entropy-based score tables for comparing blocks.



More information about the ffmpeg-cvslog mailing list