summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-24 16:19:18 +0200
committerwm4 <wm4@nowhere>2013-04-24 16:19:18 +0200
commit36c31f47b2a5e4010dd8ac7f0d47ba3ca86043ef (patch)
tree5ead13e8cd17fc05d39b940ee72914fffd472587
parent50ce2bd6c86ea44aef6bf64fdc0af605e45e6612 (diff)
downloadmpv-36c31f47b2a5e4010dd8ac7f0d47ba3ca86043ef.tar.bz2
mpv-36c31f47b2a5e4010dd8ac7f0d47ba3ca86043ef.tar.xz
demux_mkv: fix out of range comparison
This check was always false: if (num == EBML_UINT_INVALID) Fix it by using the proper type for the num variable. This case actually doesn't really matter, and this is just for hiding the warning and for being 100% correct.
-rw-r--r--demux/demux_mkv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c
index f92d091b72..ed5a2e2221 100644
--- a/demux/demux_mkv.c
+++ b/demux/demux_mkv.c
@@ -2051,7 +2051,7 @@ static int read_block(demuxer_t *demuxer, struct block_info *block)
{
mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
stream_t *s = demuxer->stream;
- int num;
+ uint64_t num;
int16_t time;
uint64_t length;
int res = -1;