aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/zmbvenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 14:01:04 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-29 17:02:03 +0200
commitd619e82e973c40137a56fa4ba720382b1f688a43 (patch)
treee97eb4277863c891138b955c2e3a3db1234490ff /libavcodec/zmbvenc.c
parent04e9b9e5143f73b3735fa6a58dccd62dca849362 (diff)
downloadffmpeg-d619e82e973c40137a56fa4ba720382b1f688a43.tar.gz
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@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/zmbvenc.c')
-rw-r--r--libavcodec/zmbvenc.c3
1 files changed, 0 insertions, 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.