# HG changeset patch # User aurel # Date 1219622054 0 # Node ID 9e9dce9660e465cad1f88fc358bcd0ff63ec316d # Parent 6c71b789c69e69c504e1e364d03eb5be51d46671 matroskadec: move setting of matroska->done inside matroska_parse_cluster() diff -r 6c71b789c69e -r 9e9dce9660e4 matroskadec.c --- a/matroskadec.c Sun Aug 24 17:37:43 2008 +0000 +++ b/matroskadec.c Sun Aug 24 23:54:14 2008 +0000 @@ -1618,6 +1618,7 @@ blocks[i].bin.pos, cluster.timecode, blocks[i].duration, !blocks[i].reference); ebml_free(matroska_cluster, &cluster); + if (res < 0) matroska->done = 1; return res; } @@ -1628,8 +1629,7 @@ while (matroska_deliver_packet(matroska, pkt)) { if (matroska->done) return AVERROR(EIO); - if (matroska_parse_cluster(matroska) < 0) - matroska->done = 1; + matroska_parse_cluster(matroska); } return 0;