ImageViewer: Fix gifs sporadically crashing on targets
ensure 32bit alignment Change-Id: I11e0df599403a888fa63dab8f1c5a94a5f35d9ad
This commit is contained in:
parent
fbdcfca085
commit
18358ed541
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue