mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00: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