[FFmpeg-cvslog] avcodec/dnxhdenc: Remove redundant pixel format check

Andreas Rheinhardt git at videolan.org
Sat Oct 2 17:59:35 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Sep 28 14:28:29 2021 +0200| [eec5a45f0594558a5eaca4a059e9d0615895fef7] | committer: Andreas Rheinhardt

avcodec/dnxhdenc: 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=eec5a45f0594558a5eaca4a059e9d0615895fef7
---

 libavcodec/dnxhdenc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index b45fb41515..ebfb85341d 100644
--- a/libavcodec/dnxhdenc.c
+++ b/libavcodec/dnxhdenc.c
@@ -363,10 +363,6 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
     case AV_PIX_FMT_GBRP10:
         ctx->bit_depth = 10;
         break;
-    default:
-        av_log(avctx, AV_LOG_ERROR,
-               "pixel format is incompatible with DNxHD\n");
-        return AVERROR(EINVAL);
     }
 
     if ((ctx->profile == FF_PROFILE_DNXHR_444 && (avctx->pix_fmt != AV_PIX_FMT_YUV444P10 &&



More information about the ffmpeg-cvslog mailing list