Commit 49cf36f4 authored by Reimar Döffinger's avatar Reimar Döffinger

sanm: fix undefined behaviour on big-endian.

A variable with post-increment may only appear
once in a statement.
Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 61e0e809
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment