aboutsummaryrefslogtreecommitdiffhomepage
path: root/demux
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-09 13:37:04 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-09 13:37:04 +0100
commit42a60143c22780fcb6dba1ac9e84753d58b932aa (patch)
treed57f3f3b7097a0979f245a1909afeffd0a4f7961 /demux
parent5d7f881bdc5c4d961ca341a1ddc30e297e06166b (diff)
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.
Diffstat (limited to 'demux')
-rw-r--r--demux/ebml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/ebml.c b/demux/ebml.c
index abbb73cfac..d62dd40593 100644
--- a/demux/ebml.c
+++ b/demux/ebml.c
@@ -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);
}
/*