1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +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:
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 #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;