mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +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:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user