[FFmpeg-cvslog] r24804 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Aug 17 16:25:15 CEST 2010


Author: aurel
Date: Tue Aug 17 16:25:14 2010
New Revision: 24804

Log:
matroskadec: minor simplification
patch from reimar

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	Tue Aug 17 16:05:23 2010	(r24803)
+++ trunk/libavformat/matroskadec.c	Tue Aug 17 16:25:14 2010	(r24804)
@@ -1734,7 +1734,7 @@ static int matroska_parse_block(Matroska
                 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;
                 }



More information about the ffmpeg-cvslog mailing list