summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 14:28:29 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 16:30:19 +0200
commiteec5a45f0594558a5eaca4a059e9d0615895fef7 (patch)
treefd78ee4a322a568d42d6c67b586718e8cdc8c2c3 /libavcodec
parent30c802f3aebc8c42de6962127bd50bac01be36e2 (diff)
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@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dnxhdenc.c4
1 files changed, 0 insertions, 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 &&