demux_mkv: add missing invalid value check

This commit is contained in:
Kacper Michajłow
2025-03-06 21:58:38 +01:00
parent d035a63913
commit 442e21a69c
+3 -1
View File
@@ -3191,7 +3191,9 @@ static int read_next_block_into_queue(demuxer_t *demuxer)
}
case MATROSKA_ID_BLOCKGROUP: {
int64_t end = ebml_read_length(s);
uint64_t end = ebml_read_length(s);
if (end == EBML_UINT_INVALID)
goto find_next_cluster;
end += stream_tell(s);
if (end > mkv_d->cluster_end)
goto find_next_cluster;