From 14a2c44c0b5d9e8c443b9404f5d794989b8219dc Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Wed, 18 Oct 2023 12:40:50 +0200 Subject: [PATCH] svt: fix encoding multiple images (includes image + separate alpha image) --- libheif/plugins/encoder_svt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc index aef1e9e4d6..036a1fbc0d 100644 --- a/libheif/plugins/encoder_svt.cc +++ b/libheif/plugins/encoder_svt.cc @@ -569,6 +569,8 @@ struct heif_error svt_encode_image(void* encoder_raw, const struct heif_image* i auto* encoder = (struct encoder_struct_svt*) encoder_raw; EbErrorType res = EB_ErrorNone; + encoder->compressed_data.clear(); + int w = heif_image_get_width(image, heif_channel_Y); int h = heif_image_get_height(image, heif_channel_Y);