mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
04e9b9e514
commit
d619e82e97
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue