[FFmpeg-devel] [PATCH 2/9] avcodec/zmbvenc: Remove redundant pixel format check
Tomas Härdin
tjoppen at acc.umu.se
Wed Sep 29 16:57:20 EEST 2021
tis 2021-09-28 klockan 16:41 +0200 skrev Andreas Rheinhardt:
> ff_encode_preinit() already checked the pixel format via
> AVCodec.pix_fmts.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavcodec/zmbvenc.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
> index b431476241..8efdbc963e 100644
> --- a/libavcodec/zmbvenc.c
> +++ b/libavcodec/zmbvenc.c
> @@ -347,9 +347,6 @@ static av_cold int encode_init(AVCodecContext
> *avctx)
> c->fmt = ZMBV_FMT_32BPP;
> c->bypp = 4;
> break;
> - default:
> - av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
> - return AVERROR(EINVAL);
Sounds OK
/Tomas
More information about the ffmpeg-devel
mailing list