Commit a412b5e7 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/bmpenc: Remove redundant pixel format check

ff_encode_preinit() already checked the pixel format via
AVCodec.pix_fmts.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent eec5a45f
......@@ -58,9 +58,6 @@ static av_cold int bmp_encode_init(AVCodecContext *avctx){
case AV_PIX_FMT_MONOBLACK:
avctx->bits_per_coded_sample = 1;
break;
default:
av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
return AVERROR(EINVAL);
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment