From 9604bcf96c976d9a8e8cdf19e161886c9875e3a9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 30 Apr 2025 03:34:08 +0200 Subject: [PATCH 35/44] avcodec/svq1enc: Remove always-false check The pixel format has already been checked generically via CODEC_PIXFMTS. Signed-off-by: Andreas Rheinhardt --- libavcodec/svq1enc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index ad6cae6237..abb1dc9863 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -648,11 +648,6 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt, if (ret < 0) return ret; - if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) { - av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n"); - return -1; - } - if (!s->current_picture->data[0]) { if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) { return ret; -- 2.45.2