From 87b017a298c12b9a2451276649f3932358b943fc Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 20 Sep 2012 20:04:56 +0200 Subject: matroskadec: fix a sanity check. --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/matroskadec.c') diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 442db23c0b..094b0558f7 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -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; } -- cgit v1.2.3