aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-01 21:05:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-09 09:15:39 +0200
commite766378619c58786da20cbcd69ed36010ca5959b (patch)
treeb348986f9d50a73af02a1ce1b6f5b7b27b311b41
parentbe65f24ad6808d0f01808dc92719a89189bca4e8 (diff)
downloadffmpeg-e766378619c58786da20cbcd69ed36010ca5959b.tar.gz
avcodec/huffyuvenc: Remove always-false check
The ffvhuff encoder has AVCodec.pix_fmts set and therefore encode_preinit_video() checks that the used pixel format is permissible. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/huffyuvenc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index fa4923962f..80dcdbaa93 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -310,12 +310,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
}
if (avctx->codec->id == AV_CODEC_ID_HUFFYUV) {
- if (avctx->pix_fmt == AV_PIX_FMT_YUV420P) {
- av_log(avctx, AV_LOG_ERROR,
- "Error: YV12 is not supported by huffyuv; use "
- "vcodec=ffvhuff or format=422p\n");
- return AVERROR(EINVAL);
- }
if (s->interlaced != ( s->height > 288 ))
av_log(avctx, AV_LOG_INFO,
"using huffyuv 2.2.0 or newer interlacing flag\n");