eunue pushed a commit to branch efl-1.9.

http://git.enlightenment.org/core/efl.git/commit/?id=35c9fb88763b748d1565e4587cce0362260c9dd3

commit 35c9fb88763b748d1565e4587cce0362260c9dd3
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Fri Apr 25 15:26:48 2014 +0900

    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
---
 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);

-- 


Reply via email to