diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-21 14:48:05 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-21 14:57:21 +0000 |
commit | fd0b8c6ad53ff2a01868ecf1bbf0c936876a0c61 (patch) | |
tree | f3e440bb57a2732d0360bddc25793f3132b43912 | |
parent | 9e63c30daa8bfde52c534027ce984e8cf3f200c3 (diff) | |
download | ffmpeg-fd0b8c6ad53ff2a01868ecf1bbf0c936876a0c61.tar.gz |
sanm: silence warnings
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/sanm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 809d28d5af..777f693e49 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -996,16 +996,18 @@ static int decode_4(SANMVideoContext *ctx) static int decode_5(SANMVideoContext *ctx) { +#if HAVE_BIGENDIAN uint16_t *frm; int npixels; +#endif uint8_t *dst = (uint8_t*)ctx->frm0; if (rle_decode(ctx, dst, ctx->buf_size)) return AVERROR_INVALIDDATA; +#if HAVE_BIGENDIAN npixels = ctx->npixels; frm = ctx->frm0; -#if HAVE_BIGENDIAN while (npixels--) *frm++ = av_bswap16(*frm); #endif |