# HG changeset patch # User aurel # Date 1276631595 0 # Node ID 9df581584d505db46737c7ca5226300beda215ba # Parent 6c41d8dce99ea2c786a1871ccc5d366e01fb99c1 matroskadec : propagate AVERROR to the caller based on a patch by Jai Menon diff -r 6c41d8dce99e -r 9df581584d50 matroskadec.c --- 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)