From 96f9353f4c951dd5dd41a687e272ffe1c28bb9ba Mon Sep 17 00:00:00 2001 From: Jaeun Choi Date: Fri, 25 Apr 2014 15:26:48 +0900 Subject: [PATCH] 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. --- src/modules/evas/loaders/gif/evas_image_load_gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c b/src/modules/evas/loaders/gif/evas_image_load_gif.c index 3f6fbdb..29ead8e 100644 --- a/src/modules/evas/loaders/gif/evas_image_load_gif.c +++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c @@ -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); -- 2.7.4