[FFmpeg-devel] [PATCH 6/9] avcodec/dpxenc: Remove redundant pixel format check
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Sep 28 17:41:14 EEST 2021
ff_encode_preinit() already checked the pixel format via
AVCodec.pix_fmts.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/dpxenc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c
index 09036a2125..0db6aa832d 100644
--- a/libavcodec/dpxenc.c
+++ b/libavcodec/dpxenc.c
@@ -68,9 +68,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
if (avctx->bits_per_raw_sample)
s->bits_per_component = avctx->bits_per_raw_sample;
break;
- default:
- av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
- return -1;
}
return 0;
--
2.30.2
More information about the ffmpeg-devel
mailing list