summaryrefslogtreecommitdiff
path: root/libavcodec/proresenc_anatoliy.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 14:14:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 16:30:19 +0200
commitc10a2959c0972994e88ae1f92d44056b1138c0d1 (patch)
tree646b6781f993faef583128392f338ddb81802c41 /libavcodec/proresenc_anatoliy.c
parentbe6da2f25257805d3a8aa4c112a77b144b30f4b2 (diff)
avcodec/proresenc_anatoliy: 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/proresenc_anatoliy.c')
-rw-r--r--libavcodec/proresenc_anatoliy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 21938c8f34..b7e00f2087 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -852,9 +852,6 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
avctx->profile = FF_PROFILE_PRORES_4444;
av_log(avctx, AV_LOG_INFO,
"encoding with ProRes 4444+ (ap4h) profile\n");
- } else {
- av_log(avctx, AV_LOG_ERROR, "Unknown pixel format\n");
- return AVERROR(EINVAL);
}
} else if (avctx->profile < FF_PROFILE_PRORES_PROXY
|| avctx->profile > FF_PROFILE_PRORES_XQ) {