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:
Reimar Döffinger 2013-08-11 11:06:41 +02:00
parent 61e0e80999
commit 49cf36f4e3

View File

@ -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;