diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-24 23:54:14 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-24 23:54:14 +0000 |
commit | 653fb2f80cf94f6dd8bbaa6139feb94bf61926e5 (patch) | |
tree | c42fa86e38adc4507b55e37e4aec015247762001 /libavformat/matroskadec.c | |
parent | bde51e6a8a961f53cd1f215ad7663d312b512a97 (diff) | |
download | ffmpeg-653fb2f80cf94f6dd8bbaa6139feb94bf61926e5.tar.gz |
matroskadec: move setting of matroska->done inside matroska_parse_cluster()
Originally committed as revision 14955 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 0901c57afc..ece7ecf278 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1618,6 +1618,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska) 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 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) 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; |