diff options
-rw-r--r-- | apps/plugins/imageviewer/gif/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/imageviewer/gif/gif.c b/apps/plugins/imageviewer/gif/gif.c index 32c87c88d9..b78709556d 100644 --- a/apps/plugins/imageviewer/gif/gif.c +++ b/apps/plugins/imageviewer/gif/gif.c | |||
@@ -72,7 +72,7 @@ static void draw_image_rect(struct image_info *info, | |||
72 | static int img_mem(int ds) | 72 | static int img_mem(int ds) |
73 | { | 73 | { |
74 | struct gif_decoder *p_decoder = &decoder; | 74 | struct gif_decoder *p_decoder = &decoder; |
75 | return p_decoder->native_img_size/ds; | 75 | return (p_decoder->native_img_size/ds + 3) & ~3; |
76 | } | 76 | } |
77 | 77 | ||
78 | static int load_image(char *filename, struct image_info *info, | 78 | static int load_image(char *filename, struct image_info *info, |