mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +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:
parent
50ce2bd6c8
commit
36c31f47b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user