changeset 6382:a4e249f79b66 libavformat

matroskadec: minor simplification patch from reimar
author aurel
date Tue, 17 Aug 2010 14:25:14 +0000
parents 8678cbf178d7
children 65745776af68
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Tue Aug 17 14:05:23 2010 +0000
+++ b/matroskadec.c	Tue Aug 17 14:25:14 2010 +0000
@@ -1734,7 +1734,7 @@
                 int offset = 0, pkt_size = lace_size[n];
                 uint8_t *pkt_data = data;
 
-                if (lace_size[n] > size) {
+                if (pkt_size > size) {
                     av_log(matroska->ctx, AV_LOG_ERROR, "Invalid packet size\n");
                     break;
                 }