Commit 6c58adf3 authored by Aurelien Jacobs's avatar Aurelien Jacobs

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
parent b046c027
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment