Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
RyeMutt committed Jun 18, 2024
1 parent 0308862 commit ed97531
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions indra/llimagej2coj/llimagej2coj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ bool LLImageJ2COJ::initEncode(LLImageJ2C &base, LLImageRaw &raw_image, int block

bool LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decode_time, S32 first_channel, S32 max_channel_count)
{
LLTimer decode_timer;

/* Extract metadata */
/* ---------------- */
U8* c_data = base.getData();
Expand Down Expand Up @@ -271,7 +269,7 @@ bool LLImageJ2COJ::decodeImpl(LLImageJ2C &base, LLImageRaw &raw_image, F32 decod
}

// extract the comment minus the markers, 00 01
raw_image.mComment.assign((char*)c_data + position + 6, c_length - 4);
raw_image.mComment.assign((char*)(c_data + position + 6), c_length - 4);
break;
}
++position;
Expand Down

0 comments on commit ed97531

Please sign in to comment.