mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/zmbvenc: Remove redundant pixel format check
ff_encode_preinit() already checked the pixel format via AVCodec.pix_fmts. Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
04e9b9e514
commit
d619e82e97
@ -347,9 +347,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
c->fmt = ZMBV_FMT_32BPP;
|
c->fmt = ZMBV_FMT_32BPP;
|
||||||
c->bypp = 4;
|
c->bypp = 4;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Entropy-based score tables for comparing blocks.
|
/* Entropy-based score tables for comparing blocks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user