Commit 31ab2f18 authored by aurel's avatar aurel

matroskadec: remove now useless wrapper ebml_read_element_length()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14603 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0ab1428e
...@@ -539,17 +539,6 @@ static int ebml_read_element_id(MatroskaDemuxContext *matroska, uint32_t *id) ...@@ -539,17 +539,6 @@ static int ebml_read_element_id(MatroskaDemuxContext *matroska, uint32_t *id)
return 0; return 0;
} }
/*
* Read: element content length.
* Return: the number of bytes read or < 0 on error.
*/
static int ebml_read_element_length(MatroskaDemuxContext *matroska,
uint64_t *length)
{
/* read out the "EBML number", include tag in ID */
return ebml_read_num(matroska, 8, length);
}
/* /*
* Read the next element as an unsigned int. * Read the next element as an unsigned int.
* 0 is success, < 0 is failure. * 0 is success, < 0 is failure.
...@@ -843,7 +832,7 @@ static int ebml_parse_elem(MatroskaDemuxContext *matroska, ...@@ -843,7 +832,7 @@ static int ebml_parse_elem(MatroskaDemuxContext *matroska,
} }
if (syntax->type != EBML_PASS && syntax->type != EBML_STOP) if (syntax->type != EBML_PASS && syntax->type != EBML_STOP)
if ((res = ebml_read_element_length(matroska, &length)) < 0) if ((res = ebml_read_num(matroska, 8, &length)) < 0)
return res; return res;
switch (syntax->type) { switch (syntax->type) {
......
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