We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b49d6e9 commit fd5932bCopy full SHA for fd5932b
src/IMG_ani.c
@@ -601,11 +601,11 @@ static bool WriteAnimation(IMG_AnimationEncoder *encoder)
601
602
ANIHEADER anih;
603
SDL_zero(anih);
604
- anih.cbSizeof = sizeof(anih);
605
- anih.frames = ctx->num_frames;
606
- anih.steps = ctx->num_frames;
607
- anih.jifRate = 1;
608
- anih.fl = ANI_FLAG_ICON;
+ anih.cbSizeof = SDL_Swap32LE(sizeof(anih));
+ anih.frames = SDL_Swap32LE(ctx->num_frames);
+ anih.steps = SDL_Swap32LE(ctx->num_frames);
+ anih.jifRate = SDL_Swap32LE(1);
+ anih.fl = SDL_Swap32LE(ANI_FLAG_ICON);
609
result &= (SDL_WriteIO(dst, &anih, sizeof(anih)) == sizeof(anih));
610
611
// Info list
0 commit comments