summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <[email protected]>2013-05-28 23:49:43 +0200
committerLuca Barbato <[email protected]>2013-06-01 05:38:38 +0200
commit5a01ab0e62c95a60b4848744e623640f5dafe23b (patch)
tree41b11a6c60b971f17732146699c2a5c19d773c40
parentdbaf3f7b0bc9e99dff8e06bd29fcb3e84eebfe7c (diff)
vmd: use the PALETTE_COUNT constant uniformly
While at it drop useless parentheses. (cherry picked from commit 91a6944e56236234f0a7ba162404665753cbcb51) Signed-off-by: Luca Barbato <[email protected]>
-rw-r--r--libavcodec/vmdav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index 526cf304ee..49ad20cc90 100644
--- a/libavcodec/vmdav.c
+++ b/libavcodec/vmdav.c
@@ -267,7 +267,7 @@ static int vmd_decode(VmdVideoContext *s)
av_log(s->avctx, AV_LOG_ERROR, "Incomplete palette\n");
return AVERROR_INVALIDDATA;
}
- s->size -= (256 * 3 + 2);
+ s->size -= PALETTE_COUNT * 3 + 2;
}
if (s->size > 0) {
/* originally UnpackFrame in VAG's code */