summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2014-04-25 15:26:48 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2014-04-25 16:30:37 +0900
commit35c9fb88763b748d1565e4587cce0362260c9dd3 (patch)
treed2129412400b33b394182aa300548bf4da8f44fd
parentd36f22c384270676fa1b3d3352e8a5e920bcce99 (diff)
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 was a @fix (missing tag in master) cherry picked from commit 96f9353f4c951dd5dd41a687e272ffe1c28bb9ba
-rw-r--r--src/modules/evas/loaders/gif/evas_image_load_gif.c2
1 files changed, 1 insertions, 1 deletions
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 3f6fbdb8e0..29ead8e92e 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:
753 DGifGetCodeNext(gif, &img); 753 DGifGetCodeNext(gif, &img);
754 } 754 }
755 } 755 }
756 imgnum++;
757 // if we found the image we wanted - get out of here 756 // if we found the image we wanted - get out of here
758 if (imgnum >= index) break; 757 if (imgnum >= index) break;
758 imgnum++;
759 } 759 }
760 } 760 }
761 while (rec != TERMINATE_RECORD_TYPE); 761 while (rec != TERMINATE_RECORD_TYPE);