changeset 6122:ad7cfe404294 libavformat

matroskadec: cosmetic: split a line to make it more readable This also simplifies further modifications.
author aurel
date Fri, 11 Jun 2010 16:27:30 +0000
parents 81614e9b541b
children 9f368d591c13
files matroskadec.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Fri Jun 11 13:44:57 2010 +0000
+++ b/matroskadec.c	Fri Jun 11 16:27:30 2010 +0000
@@ -726,8 +726,10 @@
 {
     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,