aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-05 00:40:33 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-05 00:40:33 +0000
commit8ecdab8f5ab7a6d13b5ab34c5bf0390c8e6e9ac6 (patch)
treec9c0db6e355c97251377d2f5c945cc860cd2c955 /libavformat/matroskadec.c
parent2cbc8811abfc65c5f1a48b71ad8e19ff748a4921 (diff)
downloadffmpeg-8ecdab8f5ab7a6d13b5ab34c5bf0390c8e6e9ac6.tar.gz
matroskadec: declare var where it's used
Originally committed as revision 14563 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index a380733cba..b6996df728 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1386,7 +1386,6 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
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 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
/* 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;
}