[FFmpeg-cvslog] r14723 - trunk/libavformat/matroskadec.c
aurel
subversion
Wed Aug 13 11:36:46 CEST 2008
Author: aurel
Date: Wed Aug 13 11:36:45 2008
New Revision: 14723
Log:
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.
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Wed Aug 13 11:36:45 2008
@@ -1601,7 +1601,7 @@ static int matroska_parse_cluster(Matros
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,
More information about the ffmpeg-cvslog
mailing list