Mercurial > libavformat.hg
changeset 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 | 30d4d95e068f |
children | 3790cb6c893d |
files | matroskadec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,