[FFmpeg-cvslog] vmd: use the PALETTE_COUNT constant uniformly
Luca Barbato
git at videolan.org
Thu May 30 09:33:29 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue May 28 23:49:43 2013 +0200| [91a6944e56236234f0a7ba162404665753cbcb51] | committer: Luca Barbato
vmd: use the PALETTE_COUNT constant uniformly
While at it drop useless parentheses.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91a6944e56236234f0a7ba162404665753cbcb51
---
libavcodec/vmdav.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vmdav.c b/libavcodec/vmdav.c
index e6c7586..c9c3f4e 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 */
More information about the ffmpeg-cvslog
mailing list