mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-27 11:03:26 +08:00
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. Originally committed as revision 14723 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -1601,7 +1601,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska)
|
|||||||
res = ebml_parse(matroska, matroska_clusters, &cluster);
|
res = ebml_parse(matroska, matroska_clusters, &cluster);
|
||||||
blocks_list = &cluster.blocks;
|
blocks_list = &cluster.blocks;
|
||||||
blocks = blocks_list->elem;
|
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)
|
if (blocks[i].bin.size > 0)
|
||||||
res=matroska_parse_block(matroska,
|
res=matroska_parse_block(matroska,
|
||||||
blocks[i].bin.data, blocks[i].bin.size,
|
blocks[i].bin.data, blocks[i].bin.size,
|
||||||
|
Reference in New Issue
Block a user