image_writer: log pixfmt conversion

This commit is contained in:
sfan5 2023-07-24 23:45:18 +02:00
parent e01ff88c83
commit 90410cc17e
1 changed files with 2 additions and 0 deletions

View File

@ -649,6 +649,8 @@ static struct mp_image *convert_image(struct mp_image *image, int destfmt,
if (mp_image_params_equal(&p, &image->params))
return mp_image_new_ref(image);
mp_dbg(log, "Will convert image to %s\n", mp_imgfmt_to_name(p.imgfmt));
struct mp_image *dst = mp_image_alloc(p.imgfmt, p.w, p.h);
if (!dst) {
mp_err(log, "Out of memory.\n");