Mercurial > libavformat.hg
changeset 3643:1dfa03e34d5b libavformat
matroskadec: declare var where it's used
author | aurel |
---|---|
date | Tue, 05 Aug 2008 00:40:33 +0000 |
parents | 842752a20c3c |
children | 1990951ffa35 |
files | matroskadec.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 05 00:40:31 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:40:33 2008 +0000 @@ -1386,7 +1386,6 @@ case MATROSKA_ID_TAGS: { uint32_t level_up = matroska->level_up; offset_t before_pos; - uint64_t length; MatroskaLevel level; /* remember the peeked ID and the current position */ @@ -1448,9 +1447,7 @@ /* remove dummy level */ if (dummy_level) while (matroska->num_levels) { - matroska->num_levels--; - length = - matroska->levels[matroska->num_levels].length; + uint64_t length = matroska->levels[--matroska->num_levels].length; if (length == (uint64_t)-1) break; }