You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -310,12 +310,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->codec->id == AV_CODEC_ID_HUFFYUV) {
|
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 ))
|
if (s->interlaced != ( s->height > 288 ))
|
||||||
av_log(avctx, AV_LOG_INFO,
|
av_log(avctx, AV_LOG_INFO,
|
||||||
"using huffyuv 2.2.0 or newer interlacing flag\n");
|
"using huffyuv 2.2.0 or newer interlacing flag\n");
|
||||||
|
Reference in New Issue
Block a user