diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-12-15 16:49:00 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-01-09 14:36:14 +0000 |
commit | 18358ed541e1aea20b6be18b51c587bd35fdabc6 (patch) | |
tree | b2dba34d0bf3b5a31ecaadf692151e3bb97522ad /apps | |
parent | fbdcfca085f65c402c9c660d6d5d097f357f43a1 (diff) | |
download | rockbox-18358ed541e1aea20b6be18b51c587bd35fdabc6.tar.gz rockbox-18358ed541e1aea20b6be18b51c587bd35fdabc6.zip |
ImageViewer: Fix gifs sporadically crashing on targets
ensure 32bit alignment
Change-Id: I11e0df599403a888fa63dab8f1c5a94a5f35d9ad
Diffstat (limited to 'apps')
-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, static int img_mem(int ds) { struct gif_decoder *p_decoder = &decoder; - return p_decoder->native_img_size/ds; + return (p_decoder->native_img_size/ds + 3) & ~3; } static int load_image(char *filename, struct image_info *info, |