vmd: use the PALETTE_COUNT constant uniformly

While at it drop useless parentheses.
pull/23/head
Luca Barbato 12 years ago
parent a51161ed98
commit 91a6944e56
  1. 2
      libavcodec/vmdav.c

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

Loading…
Cancel
Save