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) ...@@ -1044,8 +1044,10 @@ static int decode_5(SANMVideoContext *ctx)
#if HAVE_BIGENDIAN #if HAVE_BIGENDIAN
npixels = ctx->npixels; npixels = ctx->npixels;
frm = ctx->frm0; frm = ctx->frm0;
while (npixels--) while (npixels--) {
*frm++ = av_bswap16(*frm); *frm = av_bswap16(*frm);
frm++;
}
#endif #endif
return 0; 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