[FFmpeg-cvslog] avcodec/svq1enc: Remove always-false check
Andreas Rheinhardt
git at videolan.org
Fri May 16 03:14:54 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Apr 30 03:34:08 2025 +0200| [88ce3dade6f6df1617e130beb2d642cf3c511bfc] | committer: Andreas Rheinhardt
avcodec/svq1enc: Remove always-false check
The pixel format has already been checked generically
via CODEC_PIXFMTS.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88ce3dade6f6df1617e130beb2d642cf3c511bfc
---
libavcodec/svq1enc.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index c1662da5ec..7319740a78 100644
--- a/libavcodec/svq1enc.c
+++ b/libavcodec/svq1enc.c
@@ -644,11 +644,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;
More information about the ffmpeg-cvslog
mailing list