Commit 91a6944e authored by Luca Barbato's avatar Luca Barbato

vmd: use the PALETTE_COUNT constant uniformly

While at it drop useless parentheses.
parent a51161ed
......@@ -255,7 +255,7 @@ static void vmd_decode(VmdVideoContext *s, AVFrame *frame)
palette32[i] = (r << 16) | (g << 8) | (b);
}
}
s->size -= (256 * 3 + 2);
s->size -= PALETTE_COUNT * 3 + 2;
}
if (s->size > 0) {
/* originally UnpackFrame in VAG's code */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment