summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-09 13:37:04 +0100
committerwm4 <wm4@nowhere>2017-01-09 13:37:04 +0100
commit42a60143c22780fcb6dba1ac9e84753d58b932aa (patch)
treed57f3f3b7097a0979f245a1909afeffd0a4f7961
parent5d7f881bdc5c4d961ca341a1ddc30e297e06166b (diff)
downloadmpv-42a60143c22780fcb6dba1ac9e84753d58b932aa.tar.bz2
mpv-42a60143c22780fcb6dba1ac9e84753d58b932aa.tar.xz
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.
-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);
}
/*