From a960b756045f37eccec43bfb06e9e51c4f245f55 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 17 Jul 2023 23:16:46 +0200 Subject: image_writer: move tag_csp check into image_writer_flexible_csp() This ensures the sRGB fallback to happen in all situations involving the image writer code, notably --screenshot-sw. fixes: cbbe2e52210d9885a0897e9c7833267a60456c56 --- video/image_writer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video') diff --git a/video/image_writer.c b/video/image_writer.c index 6edd79ae31..9d3087c461 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -587,6 +587,8 @@ bool image_writer_high_depth(const struct image_writer_opts *opts) bool image_writer_flexible_csp(const struct image_writer_opts *opts) { + if (!opts->tag_csp) + return false; return false #if HAVE_JPEGXL || opts->format == AV_CODEC_ID_JPEGXL -- cgit v1.2.3