image_writer: fix still-picture option for AVIF

Gets rid of validation warnings on the produced files.
This commit is contained in:
sfan5 2023-07-17 20:31:38 +02:00
parent d7ef91fecd
commit 8aa8e21da9
1 changed files with 1 additions and 1 deletions

View File

@ -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);