matroskadec: fix typo
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 17:05:27 +0000 (19:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 17:12:07 +0000 (19:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c

index 6330b15..5dd8dd5 100644 (file)
@@ -1989,7 +1989,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
                 }
 
                 case 0x2: /* fixed-size lacing */
-                    if (size != (size / laces) * size) {
+                    if (size != (size / laces) * laces) {
                         res = AVERROR_INVALIDDATA;
                         goto end;
                     }