Mercurial > libavformat.hg
changeset 6135:9df581584d50 libavformat
matroskadec : propagate AVERROR to the caller
based on a patch by Jai Menon
author | aurel |
---|---|
date | Tue, 15 Jun 2010 19:53:15 +0000 |
parents | 6c41d8dce99e |
children | 6c0e0ad77315 |
files | matroskadec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Jun 15 14:24:19 2010 +0000 +++ b/matroskadec.c Tue Jun 15 19:53:15 2010 +0000 @@ -1158,7 +1158,7 @@ uint64_t max_start = 0; Ebml ebml = { 0 }; AVStream *st; - int i, j; + int i, j, res; matroska->ctx = s; @@ -1182,8 +1182,8 @@ ebml_free(ebml_syntax, &ebml); /* The next thing is a segment. */ - if (ebml_parse(matroska, matroska_segments, matroska) < 0) - return -1; + if ((res = ebml_parse(matroska, matroska_segments, matroska)) < 0) + return res; matroska_execute_seekhead(matroska); if (!matroska->time_scale)