Skip to content

Commit

Permalink
fix compilation error in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 11, 2023
1 parent b7dd79a commit 0ea808a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libheif/plugins/encoder_openjpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ struct heif_error opj_encode_image(void* encoder_raw, const struct heif_image* i
break;
default:
assert(false);
return heif_error{heif_error_Encoding_error, heif_suberror_Unspecified, "OpenJPEG encoder plugin received image with invalid colorspace."};
}

int band_count = (int) channels.size();
Expand Down

0 comments on commit 0ea808a

Please sign in to comment.