From 42a60143c22780fcb6dba1ac9e84753d58b932aa Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 9 Jan 2017 13:37:04 +0100 Subject: 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. --- demux/ebml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/ebml.c') 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); } /* -- cgit v1.2.3