From 8aa8e21da91a575bf441e194a6756ddaf5315da7 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 17 Jul 2023 20:31:38 +0200 Subject: [PATCH] image_writer: fix still-picture option for AVIF Gets rid of validation warnings on the produced files. --- video/image_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/image_writer.c b/video/image_writer.c index 9f76bd3008..c8cde77304 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -372,7 +372,7 @@ static bool write_avif(struct image_writer_ctx *ctx, mp_image_t *image, avctx->codec_type = AVMEDIA_TYPE_VIDEO; avctx->pix_fmt = imgfmt2pixfmt(image->imgfmt); - av_opt_set_int(avctx, "still-image", 1, AV_OPT_SEARCH_CHILDREN); + av_opt_set_int(avctx, "still-picture", 1, AV_OPT_SEARCH_CHILDREN); AVDictionary *avd = NULL; mp_set_avdict(&avd, ctx->opts->avif_opts);