Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 15:41:16 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 17:30:19 +0300
commita412b5e7920cacf75f95ca3ae6c3a29ce2917080 (patch)
tree8387aa8b443af37c6227def11f014116defa8b3a /libavcodec/bmpenc.c
parenteec5a45f0594558a5eaca4a059e9d0615895fef7 (diff)
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@outlook.com>
Diffstat (limited to 'libavcodec/bmpenc.c')
-rw-r--r--libavcodec/bmpenc.c3
1 files changed, 0 insertions, 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;