Commit 3856e7c4 authored by Aurelien Jacobs's avatar Aurelien Jacobs

matroskadec: remove unused levelup parameter from ebml_read_element_id()

Originally committed as revision 14586 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 44cea765
...@@ -542,8 +542,7 @@ ebml_read_num (MatroskaDemuxContext *matroska, ...@@ -542,8 +542,7 @@ ebml_read_num (MatroskaDemuxContext *matroska,
*/ */
static int static int
ebml_read_element_id (MatroskaDemuxContext *matroska, ebml_read_element_id (MatroskaDemuxContext *matroska,
uint32_t *id, uint32_t *id)
int *level_up)
{ {
int read; int read;
uint64_t total; uint64_t total;
...@@ -589,7 +588,7 @@ ebml_peek_id (MatroskaDemuxContext *matroska, ...@@ -589,7 +588,7 @@ ebml_peek_id (MatroskaDemuxContext *matroska,
uint32_t id; uint32_t id;
int res; int res;
res = ebml_read_element_id(matroska, &id, NULL); res = ebml_read_element_id(matroska, &id);
if (res < 0) if (res < 0)
return 0; return 0;
...@@ -627,7 +626,7 @@ ebml_read_skip (MatroskaDemuxContext *matroska) ...@@ -627,7 +626,7 @@ ebml_read_skip (MatroskaDemuxContext *matroska)
uint64_t length; uint64_t length;
int res; int res;
if ((res = ebml_read_element_id(matroska, &id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, &id)) < 0 ||
(res = ebml_read_element_length(matroska, &length)) < 0) (res = ebml_read_element_length(matroska, &length)) < 0)
return res; return res;
...@@ -649,7 +648,7 @@ ebml_read_uint (MatroskaDemuxContext *matroska, ...@@ -649,7 +648,7 @@ ebml_read_uint (MatroskaDemuxContext *matroska,
int n = 0, size, res; int n = 0, size, res;
uint64_t rlength; uint64_t rlength;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, id)) < 0 ||
(res = ebml_read_element_length(matroska, &rlength)) < 0) (res = ebml_read_element_length(matroska, &rlength)) < 0)
return res; return res;
size = rlength; size = rlength;
...@@ -682,7 +681,7 @@ ebml_read_float (MatroskaDemuxContext *matroska, ...@@ -682,7 +681,7 @@ ebml_read_float (MatroskaDemuxContext *matroska,
int size, res; int size, res;
uint64_t rlength; uint64_t rlength;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, id)) < 0 ||
(res = ebml_read_element_length(matroska, &rlength)) < 0) (res = ebml_read_element_length(matroska, &rlength)) < 0)
return res; return res;
size = rlength; size = rlength;
...@@ -715,7 +714,7 @@ ebml_read_ascii (MatroskaDemuxContext *matroska, ...@@ -715,7 +714,7 @@ ebml_read_ascii (MatroskaDemuxContext *matroska,
int size, res; int size, res;
uint64_t rlength; uint64_t rlength;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, id)) < 0 ||
(res = ebml_read_element_length(matroska, &rlength)) < 0) (res = ebml_read_element_length(matroska, &rlength)) < 0)
return res; return res;
size = rlength; size = rlength;
...@@ -752,7 +751,7 @@ ebml_read_master (MatroskaDemuxContext *matroska, ...@@ -752,7 +751,7 @@ ebml_read_master (MatroskaDemuxContext *matroska,
MatroskaLevel *level; MatroskaLevel *level;
int res; int res;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, id)) < 0 ||
(res = ebml_read_element_length(matroska, &length)) < 0) (res = ebml_read_element_length(matroska, &length)) < 0)
return res; return res;
...@@ -783,7 +782,7 @@ ebml_read_binary (MatroskaDemuxContext *matroska, ...@@ -783,7 +782,7 @@ ebml_read_binary (MatroskaDemuxContext *matroska,
uint64_t rlength; uint64_t rlength;
int res; int res;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 || if ((res = ebml_read_element_id(matroska, id)) < 0 ||
(res = ebml_read_element_length(matroska, &rlength)) < 0) (res = ebml_read_element_length(matroska, &rlength)) < 0)
return res; return res;
*size = rlength; *size = rlength;
......
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