1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 18:57:35 +00:00

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.
This commit is contained in:
wm4 2013-04-24 16:19:18 +02:00
parent 50ce2bd6c8
commit 36c31f47b2

View File

@ -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;