Bug 78906 - jpeg images not loading. r=pavlov, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@93941 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
48f5146c36
commit
c519f7cf34
@ -258,7 +258,7 @@ NS_IMETHODIMP nsJPEGDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR
|
||||
mObserver->OnStartDecode(nsnull, nsnull);
|
||||
|
||||
/* we only support jpegs with 1 or 3 components currently. */
|
||||
if (mInfo.output_components != 1 ||
|
||||
if (mInfo.output_components != 1 &&
|
||||
mInfo.output_components != 3) {
|
||||
mState = JPEG_ERROR;
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user