diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-08-31 03:55:14 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-08-31 03:55:14 +0300 |
commit | d8b894af640bd1e2b1115bd69c29b4654b3c6973 (patch) | |
tree | 6d5d28788bd719e6439976cd4716673bc74bc654 /src/cvt_xmi2mid.hpp | |
parent | c7b3199669a7b7e0ba11eb0d94d4e143a5fdd633 (diff) | |
parent | cf121066a365286bd1427f54064b487799623ec9 (diff) | |
download | libADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.tar.gz libADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.tar.bz2 libADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.zip |
Merge branch 'master' of git@github.com:Wohlstand/libADLMIDI.git
# Conflicts:
# src/adlmidi_opl3.cpp
Diffstat (limited to 'src/cvt_xmi2mid.hpp')
-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); |