diff options
Diffstat (limited to 'video/image_writer.c')
-rw-r--r-- | video/image_writer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c index b730f40bf6..8d3b746ef7 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -285,7 +285,7 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts, // - RGB->YUV assumes BT.601 // - color levels broken in various ways thanks to libswscale if (image->imgfmt != destfmt || is_anamorphic) { - struct mp_image *dst = alloc_mpi(d_w, d_h, destfmt); + struct mp_image *dst = mp_image_alloc(destfmt, d_w, d_h); mp_image_copy_attributes(dst, image); int flags = SWS_LANCZOS | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP | @@ -310,7 +310,7 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts, filename); } - free_mp_image(allocated_image); + talloc_free(allocated_image); return success; } |