vmd: use the PALETTE_COUNT constant uniformly

While at it drop useless parentheses.
This commit is contained in:
Luca Barbato 2013-05-28 23:49:43 +02:00
parent a51161ed98
commit 91a6944e56
1 changed files with 1 additions and 1 deletions

View File

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