# HG changeset patch # User aurel # Date 1218620205 0 # Node ID b337fe64a31fc2938bd0d5f851f79bdc41f44aa0 # Parent 30d4d95e068f9f9ef81b41e9ade22bd026e6bffa 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. diff -r 30d4d95e068f -r b337fe64a31f matroskadec.c --- 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 && inb_elem; i++) + for (i=0; inb_elem; i++) if (blocks[i].bin.size > 0) res=matroska_parse_block(matroska, blocks[i].bin.data, blocks[i].bin.size,