mirror of https://git.ffmpeg.org/ffmpeg.git
matroskadec: remove useless dummy_level variable
Originally committed as revision 14565 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
13b350a3a4
commit
82113343a7
|
@ -1346,7 +1346,6 @@ matroska_execute_seekhead(MatroskaDemuxContext *matroska)
|
||||||
uint32_t peek_id_cache = matroska->peek_id;
|
uint32_t peek_id_cache = matroska->peek_id;
|
||||||
uint32_t level_up = matroska->level_up;
|
uint32_t level_up = matroska->level_up;
|
||||||
offset_t before_pos = url_ftell(matroska->ctx->pb);
|
offset_t before_pos = url_ftell(matroska->ctx->pb);
|
||||||
int dummy_level = 0;
|
|
||||||
MatroskaLevel level;
|
MatroskaLevel level;
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
int i, res;
|
int i, res;
|
||||||
|
@ -1375,7 +1374,6 @@ matroska_execute_seekhead(MatroskaDemuxContext *matroska)
|
||||||
level.length = (uint64_t)-1;
|
level.length = (uint64_t)-1;
|
||||||
matroska->levels[matroska->num_levels] = level;
|
matroska->levels[matroska->num_levels] = level;
|
||||||
matroska->num_levels++;
|
matroska->num_levels++;
|
||||||
dummy_level = 1;
|
|
||||||
|
|
||||||
/* check ID */
|
/* check ID */
|
||||||
if (!(id = ebml_peek_id (matroska,
|
if (!(id = ebml_peek_id (matroska,
|
||||||
|
@ -1410,7 +1408,6 @@ matroska_execute_seekhead(MatroskaDemuxContext *matroska)
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
/* remove dummy level */
|
/* remove dummy level */
|
||||||
if (dummy_level)
|
|
||||||
while (matroska->num_levels) {
|
while (matroska->num_levels) {
|
||||||
uint64_t length = matroska->levels[--matroska->num_levels].length;
|
uint64_t length = matroska->levels[--matroska->num_levels].length;
|
||||||
if (length == (uint64_t)-1)
|
if (length == (uint64_t)-1)
|
||||||
|
|
Loading…
Reference in New Issue