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:
@@ -267,7 +267,7 @@ static int vmd_decode(VmdVideoContext *s)
|
|||||||
av_log(s->avctx, AV_LOG_ERROR, "Incomplete palette\n");
|
av_log(s->avctx, AV_LOG_ERROR, "Incomplete palette\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
s->size -= (256 * 3 + 2);
|
s->size -= PALETTE_COUNT * 3 + 2;
|
||||||
}
|
}
|
||||||
if (s->size > 0) {
|
if (s->size > 0) {
|
||||||
/* originally UnpackFrame in VAG's code */
|
/* originally UnpackFrame in VAG's code */
|
||||||
|
Reference in New Issue
Block a user