Bug 944353. If we've had a decoder error then the image is not usable. r=seth

This matches what RasterImage will do.
This commit is contained in:
Timothy Nikkel 2014-02-26 21:48:51 -06:00
parent 520961becf
commit b54dcfc90d

View File

@ -155,7 +155,7 @@ Decoder::Finish(RasterImage::eShutdownIntent aShutdownIntent)
}
}
bool usable = true;
bool usable = !HasDecoderError();
if (aShutdownIntent != RasterImage::eShutdownIntent_NotNeeded && !HasDecoderError()) {
// If we only have a data error, we're usable if we have at least one complete frame.
if (GetCompleteFrameCount() == 0) {