aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-07-09 08:11:30 +0200
committerAnton Khirnov <anton@khirnov.net>2011-07-10 18:51:30 +0200
commitf47ac3c6ca966d72b2966495958184b524d001f7 (patch)
treef21ebbb9c99742bf13603bfb4ffefa02d2c352ad /libavformat
parent31ad14c21e0735387ba8082c6e3436241f7ccfc8 (diff)
downloadffmpeg-f47ac3c6ca966d72b2966495958184b524d001f7.tar.gz
matroskadec: reindent
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskadec.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 37ce3342b1..e1e555df80 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1129,7 +1129,7 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, int idx
|| seekhead[idx].id == MATROSKA_ID_CLUSTER)
return 0;
- /* seek */
+ /* seek */
offset = seekhead[idx].pos + matroska->segment_start;
if (avio_seek(matroska->ctx->pb, offset, SEEK_SET) == offset) {
/* We don't want to lose our seekhead level, so we add
@@ -1140,22 +1140,22 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, int idx
"cannot parse further.\n", EBML_MAX_DEPTH);
ret = AVERROR_INVALIDDATA;
} else {
- level.start = 0;
- level.length = (uint64_t)-1;
- matroska->levels[matroska->num_levels] = level;
- matroska->num_levels++;
- matroska->current_id = 0;
-
- ebml_parse(matroska, matroska_segment, matroska);
-
- /* remove dummy level */
- while (matroska->num_levels) {
- uint64_t length = matroska->levels[--matroska->num_levels].length;
- if (length == (uint64_t)-1)
- break;
+ level.start = 0;
+ level.length = (uint64_t)-1;
+ matroska->levels[matroska->num_levels] = level;
+ matroska->num_levels++;
+ matroska->current_id = 0;
+
+ ebml_parse(matroska, matroska_segment, matroska);
+
+ /* remove dummy level */
+ while (matroska->num_levels) {
+ uint64_t length = matroska->levels[--matroska->num_levels].length;
+ if (length == (uint64_t)-1)
+ break;
+ }
}
}
- }
/* seek back */
avio_seek(matroska->ctx->pb, before_pos, SEEK_SET);
matroska->level_up = level_up;