diff matroskadec.c @ 3713:b337fe64a31f libavformat

matroskadec: parse available blocks even when cluster parsing failed This way, we still read the few complete blocks out of a truncated cluster at the end of a truncated file.
author aurel
date Wed, 13 Aug 2008 09:36:45 +0000
parents b4f34511ccd3
children f65dc584662d
line wrap: on
line diff
--- a/matroskadec.c	Tue Aug 12 21:02:37 2008 +0000
+++ b/matroskadec.c	Wed Aug 13 09:36:45 2008 +0000
@@ -1601,7 +1601,7 @@
         res = ebml_parse(matroska, matroska_clusters, &cluster);
     blocks_list = &cluster.blocks;
     blocks = blocks_list->elem;
-    for (i=0; !res && i<blocks_list->nb_elem; i++)
+    for (i=0; i<blocks_list->nb_elem; i++)
         if (blocks[i].bin.size > 0)
             res=matroska_parse_block(matroska,
                                      blocks[i].bin.data, blocks[i].bin.size,