aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-20 20:04:56 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-21 09:15:07 +0200
commit87b017a298c12b9a2451276649f3932358b943fc (patch)
tree503250b99f45a73f9c5d227c448af8b9300313a0
parentbdb939ad730f1170ef0f57fb7a3c5686435af2d1 (diff)
downloadffmpeg-87b017a298c12b9a2451276649f3932358b943fc.tar.gz
matroskadec: fix a sanity check.
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
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;
}