Commit d91644fa authored by aurel's avatar aurel

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14723 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 519e401a
......@@ -1601,7 +1601,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska)
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment