forked from enlightenment/efl
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:
parent
785cdcf689
commit
96f9353f4c
|
@ -753,9 +753,9 @@ open_file:
|
||||||
DGifGetCodeNext(gif, &img);
|
DGifGetCodeNext(gif, &img);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
imgnum++;
|
|
||||||
// if we found the image we wanted - get out of here
|
// if we found the image we wanted - get out of here
|
||||||
if (imgnum >= index) break;
|
if (imgnum >= index) break;
|
||||||
|
imgnum++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (rec != TERMINATE_RECORD_TYPE);
|
while (rec != TERMINATE_RECORD_TYPE);
|
||||||
|
|
Loading…
Reference in New Issue