Commit 87b017a2 authored by Anton Khirnov's avatar Anton Khirnov

matroskadec: fix a sanity check.

parent bdb939ad
......@@ -1804,7 +1804,7 @@ static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf,
}
case 0x2: /* fixed-size lacing */
if (size != (size / *laces) * size) {
if (size % (*laces)) {
res = AVERROR_INVALIDDATA;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment