diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-08-28 12:38:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 12:38:55 +0300 |
commit | b8638e6c795b55c9e7fe25fbbd81a04ab484b930 (patch) | |
tree | 250e05c7d507e4ade83c5ec38aa47f5e7b42c493 /src | |
parent | 399992184883f76a0cd8909a92c15dea85dc657c (diff) | |
parent | 6c495486cdd3c3c8f5c3c945e79233128a7479f9 (diff) | |
download | libADLMIDI-b8638e6c795b55c9e7fe25fbbd81a04ab484b930.tar.gz libADLMIDI-b8638e6c795b55c9e7fe25fbbd81a04ab484b930.tar.bz2 libADLMIDI-b8638e6c795b55c9e7fe25fbbd81a04ab484b930.zip |
Merge pull request #158 from jpcima/warcraft2-xmi
XMI: fix the VLQ reading procedure
Diffstat (limited to 'src')
-rw-r--r-- | src/cvt_xmi2mid.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cvt_xmi2mid.hpp b/src/cvt_xmi2mid.hpp index decb25c..e8d9dbf 100644 --- a/src/cvt_xmi2mid.hpp +++ b/src/cvt_xmi2mid.hpp @@ -640,7 +640,7 @@ static int xmi2mid_GetVLQ2(struct xmi2mid_xmi_ctx *ctx, uint32_t *quant) { int32_t data; *quant = 0; - for (i = 0; i < 4; i++) { + for (i = 0; xmi2mid_getsrcpos(ctx) != xmi2mid_getsrcsize(ctx); ++i) { data = xmi2mid_read1(ctx); if (data & 0x80) { xmi2mid_skipsrc(ctx, -1); |