mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
sanm: fix undefined behaviour on big-endian.
A variable with post-increment may only appear once in a statement. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
61e0e80999
commit
49cf36f4e3
@ -1044,8 +1044,10 @@ static int decode_5(SANMVideoContext *ctx)
|
||||
#if HAVE_BIGENDIAN
|
||||
npixels = ctx->npixels;
|
||||
frm = ctx->frm0;
|
||||
while (npixels--)
|
||||
*frm++ = av_bswap16(*frm);
|
||||
while (npixels--) {
|
||||
*frm = av_bswap16(*frm);
|
||||
frm++;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user