Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-06-11 20:27:30 +0400
committerAurelien Jacobs <aurel@gnuage.org>2010-06-11 20:27:30 +0400
commit6c58adf3b74b894bb6d3c47323aa4d03fb4995ea (patch)
tree17e6312ecfdd43129808c97a8d72ac571735adee /libavformat/matroskadec.c
parentb046c027a71b593d023a357ad22afef33346f8fe (diff)
matroskadec: cosmetic: split a line to make it more readable
This also simplifies further modifications. Originally committed as revision 23586 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 6002c9ada0..ca2338d0a6 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -726,8 +726,10 @@ static int ebml_parse(MatroskaDemuxContext *matroska, EbmlSyntax *syntax,
{
uint64_t id;
int res = ebml_read_num(matroska, matroska->ctx->pb, 4, &id);
+ if (res < 0)
+ return res;
id |= 1 << 7*res;
- return res < 0 ? res : ebml_parse_id(matroska, syntax, id, data);
+ return ebml_parse_id(matroska, syntax, id, data);
}
static int ebml_parse_nest(MatroskaDemuxContext *matroska, EbmlSyntax *syntax,