vmd: use the PALETTE_COUNT constant uniformly

While at it drop useless parentheses.
(cherry picked from commit 91a6944e56)

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato
2013-05-28 23:49:43 +02:00
parent dbaf3f7b0b
commit 5a01ab0e62

View File

@@ -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 */