[FFmpeg-cvslog] avcodec/bmpenc: Remove redundant pixel format check
Andreas Rheinhardt
git at videolan.org
Sat Oct 2 17:59:37 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Sep 28 14:41:16 2021 +0200| [a412b5e7920cacf75f95ca3ae6c3a29ce2917080] | committer: Andreas Rheinhardt
avcodec/bmpenc: Remove redundant pixel format check
ff_encode_preinit() already checked the pixel format via
AVCodec.pix_fmts.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a412b5e7920cacf75f95ca3ae6c3a29ce2917080
---
libavcodec/bmpenc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index 1eebf5a4b6..672c0e4980 100644
--- a/libavcodec/bmpenc.c
+++ b/libavcodec/bmpenc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list