Skip to content

Commit

Permalink
svt: fix encoding multiple images (includes image + separate alpha im…
Browse files Browse the repository at this point in the history
…age)
  • Loading branch information
farindk committed Oct 18, 2023
1 parent b051d31 commit 14a2c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libheif/plugins/encoder_svt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 14a2c44

Please sign in to comment.