Skip to content

Commit

Permalink
Fix #158
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Apr 24, 2020
1 parent c5b9564 commit 3d30312
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion c_components/lib/codecs_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ static bool flow_codecs_png_decoder_BeginRead(flow_c * c, struct flow_codecs_png
if (!(state->color_type & PNG_COLOR_MASK_ALPHA)) {
png_set_expand(state->png_ptr);
png_set_filler(state->png_ptr, 65535L, PNG_FILLER_AFTER);
state->canvas_fmt = flow_bgr32;
if (state->color_type == PNG_COLOR_TYPE_PALETTE){
state->canvas_fmt = flow_bgra32;
}else{
state->canvas_fmt = flow_bgr32;
}
} else {
state->canvas_fmt = flow_bgra32;
}
Expand Down

2 comments on commit 3d30312

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New misspellings found, please review:

  • esults
  • graphicsmagick
  • jpegsize
  • queryquiet
To accept these changes, run the following commands
remove_obsolete_words=$(mktemp)
echo '#!/usr/bin/perl -ni
my $re=join "|", qw('"
jsoref
megapixels
"');
next if /^($re)(?:$| .*)/;
print;' > $remove_obsolete_words
chmod +x $remove_obsolete_words
for file in .github/actions/spell-check/whitelist/42f15d0ed3748dd6a1b8c1f026d297f0625fb5eb.txt .github/actions/spell-check/whitelist/whitelist.txt; do $remove_obsolete_words $file; done
rm $remove_obsolete_words
(
echo "
esults
graphicsmagick
jpegsize
queryquiet
"
) | sort -u -f | perl -ne 'next unless /./; print' > new_whitelist.txt && mv new_whitelist.txt '.github/actions/spell-check/whitelist/3d303128f46927a29fe0263147fa61ea73b8f145.txt'

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New misspellings found, please review:

  • esults
  • graphicsmagick
  • jpegsize
  • queryquiet
To accept these changes, run the following commands
remove_obsolete_words=$(mktemp)
echo '#!/usr/bin/perl -ni
my $re=join "|", qw('"
jsoref
megapixels
"');
next if /^($re)(?:$| .*)/;
print;' > $remove_obsolete_words
chmod +x $remove_obsolete_words
for file in .github/actions/spell-check/whitelist/42f15d0ed3748dd6a1b8c1f026d297f0625fb5eb.txt .github/actions/spell-check/whitelist/whitelist.txt; do $remove_obsolete_words $file; done
rm $remove_obsolete_words
(
echo "
esults
graphicsmagick
jpegsize
queryquiet
"
) | sort -u -f | perl -ne 'next unless /./; print' > new_whitelist.txt && mv new_whitelist.txt '.github/actions/spell-check/whitelist/3d303128f46927a29fe0263147fa61ea73b8f145.txt'

Please sign in to comment.