demux_mkv: ebml: turn an int shift into int64

This was probably the intention all along. But I honestly have no idea
what this code even does.

Due to what ebml_read_vlen_int() is used for, this is unlikely to have
mattered anyway as it rarely/never reads huge values. Which is probably
why this has worked for over a decade.
This commit is contained in:
wm4 2017-01-09 13:37:04 +01:00
parent 5d7f881bdc
commit 42a60143c2
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ int64_t ebml_read_vlen_int(bstr *buffer)
return EBML_INT_INVALID;
l = len - buffer->len;
return unum - ((1 << ((7 * l) - 1)) - 1);
return unum - ((1LL << ((7 * l) - 1)) - 1);
}
/*