[libav-commits] matroskadec: fix a sanity check.

Anton Khirnov git at libav.org
Fri Sep 21 10:12:54 CEST 2012


Module: libav
Branch: master
Commit: 87b017a298c12b9a2451276649f3932358b943fc

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Thu Sep 20 20:04:56 2012 +0200

matroskadec: fix a sanity check.

---

 libavformat/matroskadec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 442db23..094b055 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;
         }



More information about the libav-commits mailing list