Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ptahmose committed Sep 27, 2023
1 parent db7b38c commit 0e8aae9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Src/JxrDecode/JxrDecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ void JxrDecode::Decode(

U32 frame_count;
err = upDecoder->GetFrameCount(upDecoder.get(), &frame_count);
if (Failed(err)) { ThrowJxrlibError("'decoder::GetFrameCount' failed", err); }
if (Failed(err))
{
ThrowJxrlibError("'decoder::GetFrameCount' failed", err);
}

if (frame_count != 1)
{
ostringstream string_stream;
Expand All @@ -162,7 +166,10 @@ void JxrDecode::Decode(

PKPixelFormatGUID pixel_format_of_decoder;
upDecoder->GetPixelFormat(upDecoder.get(), &pixel_format_of_decoder);
if (Failed(err)) { ThrowJxrlibError("'decoder::GetPixelFormat' failed", err); }
if (Failed(err))
{
ThrowJxrlibError("'decoder::GetPixelFormat' failed", err);
}

const auto jxrpixel_format = JxrPixelFormatGuidToEnum(pixel_format_of_decoder);
if (jxrpixel_format == JxrDecode::PixelFormat::kInvalid)
Expand Down

0 comments on commit 0e8aae9

Please sign in to comment.