diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-05-28 23:49:43 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-05-29 12:11:47 +0200 |
commit | 91a6944e56236234f0a7ba162404665753cbcb51 (patch) | |
tree | 29cf858a0d5d6a6b92b5b7b3fc3e7b941393087c /libavcodec | |
parent | a51161ed9892a8f932955ab8dac25e5c7f112a46 (diff) | |
download | ffmpeg-91a6944e56236234f0a7ba162404665753cbcb51.tar.gz |
vmd: use the PALETTE_COUNT constant uniformly
While at it drop useless parentheses.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vmdav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c index e6c75868e5..c9c3f4ead7 100644 --- a/libavcodec/vmdav.c +++ b/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 */ |