[FFmpeg-cvslog] matroskadec: fix a sanity check.

Anton Khirnov git at videolan.org
Fri Sep 21 14:48:53 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Sep 20 20:04:56 2012 +0200| [87b017a298c12b9a2451276649f3932358b943fc] | committer: Anton Khirnov

matroskadec: fix a sanity check.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87b017a298c12b9a2451276649f3932358b943fc
---

 libavformat/matroskadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ffmpeg-cvslog mailing list