Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/126
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 7, 2016
1 parent 5572ef6 commit 430403b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MagickCore/quantum-import.c
Expand Up @@ -1421,7 +1421,7 @@ static void ImportCbYCrYQuantum(const Image *image,QuantumInfo *quantum_info,

n=0;
quantum=0;
for (x=0; x < (ssize_t) number_pixels; x+=2)
for (x=0; x < (ssize_t) number_pixels; x+=4)
{
for (i=0; i < 4; i++)
{
Expand Down
4 changes: 3 additions & 1 deletion MagickCore/quantum.c
Expand Up @@ -321,6 +321,9 @@ MagickExport size_t GetQuantumExtent(const Image *image,
case BGRAQuantum: packet_size=4; break;
case CMYKQuantum: packet_size=4; break;
case CMYKAQuantum: packet_size=5; break;
case CbYCrAQuantum: packet_size=4; break;
case CbYCrQuantum: packet_size=3; break;
case CbYCrYQuantum: packet_size=4; break;
default: break;
}
extent=MagickMax(image->columns,image->rows);
Expand Down Expand Up @@ -872,7 +875,6 @@ MagickExport void SetQuantumPack(QuantumInfo *quantum_info,
quantum_info->pack=pack;
}


/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
Expand Down

0 comments on commit 430403b

Please sign in to comment.