matroskadec: fix a sanity check.

This commit is contained in:
Anton Khirnov 2012-09-20 20:04:56 +02:00
parent bdb939ad73
commit 87b017a298
1 changed files with 1 additions and 1 deletions

View File

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