Bug 570451 - Avoid adding unneeded lines to image; r=joe sr=vlad

This commit is contained in:
Jeff Muizelaar 2010-06-25 15:20:18 -04:00
parent ec7bd00b0a
commit 105a409ca0

View File

@ -776,6 +776,9 @@ row_callback(png_structp png_ptr, png_bytep new_row,
if (decoder->mFrameIsHidden)
return;
if (row_num >= decoder->mFrameRect.height)
return;
if (new_row) {
PRInt32 width = decoder->mFrameRect.width;
PRUint32 iwidth = decoder->mFrameRect.width;