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>
This commit is contained in:
Andreas Rheinhardt 2021-09-28 14:01:04 +02:00
parent 04e9b9e514
commit d619e82e97
1 changed files with 0 additions and 3 deletions

View File

@ -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.