Evas: gif decoding bug fix

Gif decoder decodes prior frames sequentially to decode a specific frame.
The last frame of sequential decoding, which is the frame we want to decode,
remains un-decoded until the while loop stops.
The frame count should be incremented after the comparison statement.
This commit is contained in:
Jaeun Choi 2014-04-25 15:26:48 +09:00
parent 785cdcf689
commit 96f9353f4c
1 changed files with 1 additions and 1 deletions

View File

@ -753,9 +753,9 @@ open_file:
DGifGetCodeNext(gif, &img);
}
}
imgnum++;
// if we found the image we wanted - get out of here
if (imgnum >= index) break;
imgnum++;
}
}
while (rec != TERMINATE_RECORD_TYPE);