# HG changeset patch # User aurel # Date 1217896956 0 # Node ID eb0eeba954df380dac3c98223420cb0aeae0a8c5 # Parent 1332d68c8210f75c6a44e1a973bb3c3677a32cf7 matroskadec: remove now useless wrapper ebml_read_element_length() diff -r 1332d68c8210 -r eb0eeba954df matroskadec.c --- a/matroskadec.c Tue Aug 05 00:42:33 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:42:36 2008 +0000 @@ -540,17 +540,6 @@ } /* - * 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. * 0 is success, < 0 is failure. */ @@ -843,7 +832,7 @@ } 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; switch (syntax->type) {