diff mbox series

[FFmpeg-devel,6/9] avcodec/dpxenc: Remove redundant pixel format check

Message ID AM7PR03MB66608120EFDF1552DA7D46168FA89@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 30c802f3aebc8c42de6962127bd50bac01be36e2
Headers show
Series [FFmpeg-devel,1/9] avcodec/magicyuvenc: Use immediate when known | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 28, 2021, 2:41 p.m. UTC
ff_encode_preinit() already checked the pixel format via
AVCodec.pix_fmts.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/dpxenc.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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;