Skip to content

Commit

Permalink
fix OpenJ2K encoding plugin return encoded size (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 15, 2024
1 parent 3a043d9 commit d2ea2d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libheif/plugins/encoder_openjpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ void opj_query_encoded_size(void* encoder, uint32_t input_width, uint32_t input_
// of required rounding, or a required minimum size. Use this function to return
// the encoded size for a given input image size.
// You may set this to NULL if no padding is required for any image size.

*encoded_width = input_width;
*encoded_height = input_height;
}


Expand Down

0 comments on commit d2ea2d2

Please sign in to comment.