[FFmpeg-cvslog] avcodec/dpxenc: Remove redundant pixel format check
Andreas Rheinhardt
git at videolan.org
Sat Oct 2 17:59:33 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Sep 28 14:25:59 2021 +0200| [30c802f3aebc8c42de6962127bd50bac01be36e2] | committer: Andreas Rheinhardt
avcodec/dpxenc: 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=30c802f3aebc8c42de6962127bd50bac01be36e2
---
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;
More information about the ffmpeg-cvslog
mailing list