Skip to content

Commit

Permalink
Merge pull request #1146 from Lastique/patch-1
Browse files Browse the repository at this point in the history
Fix compilation with libsvtav1 2.0.0
  • Loading branch information
farindk authored Mar 15, 2024
2 parents 33e00a4 + a911b26 commit ddf50c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/encoder_svt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ struct heif_error svt_encode_image(void* encoder_raw, const struct heif_image* i

if (nclx) {
svt_config.color_description_present_flag = true;
#if SVT_AV1_VERSION_MAJOR == 1
#if SVT_AV1_VERSION_MAJOR >= 1
svt_config.color_primaries = static_cast<EbColorPrimaries>(nclx->color_primaries);
svt_config.transfer_characteristics = static_cast<EbTransferCharacteristics>(nclx->transfer_characteristics);
svt_config.matrix_coefficients = static_cast<EbMatrixCoefficients>(nclx->matrix_coefficients);
Expand Down

0 comments on commit ddf50c6

Please sign in to comment.