Skip to content

Commit

Permalink
x265 has reverted the change to encode_encode()
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 30, 2024
1 parent a0a509c commit 9c39813
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libheif/plugins/encoder_x265.cc
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,9 @@ static struct heif_error x265_encode_image(void* encoder_raw, const struct heif_

encoder->encoder = api->encoder_open(param);

#if X265_BUILD >= 212
#if X265_BUILD == 212
// In x265 build version 212, the signature of the encoder_encode() function was changed. But it was changed back in version 213.
// https://bitbucket.org/multicoreware/x265_git/issues/952/crash-in-libheif-tests
x265_picture* out_pic = NULL;
api->encoder_encode(encoder->encoder,
&encoder->nals,
Expand Down Expand Up @@ -984,7 +986,7 @@ static struct heif_error x265_get_compressed_data(void* encoder_raw, uint8_t** d
encoder->nal_output_counter = 0;


#if X265_BUILD >= 212
#if X265_BUILD == 212
x265_picture* out_pic = NULL;
int result = api->encoder_encode(encoder->encoder,
&encoder->nals,
Expand Down

0 comments on commit 9c39813

Please sign in to comment.