summaryrefslogtreecommitdiffstats
path: root/libavcodec/ass_split.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-09-10 00:29:50 -0500
committerRodger Combs <rodger.combs@gmail.com>2016-09-12 15:57:51 -0500
commitdca03ec5f4d5ca28efc8a80c591412fab5821d81 (patch)
tree9c652a81587f4de8f20a91db7a5fb9de3a0d561e /libavcodec/ass_split.c
parent3b32e1313c6d68aa10bc7d97ad505382def833b0 (diff)
downloadffmpeg-streaming-dca03ec5f4d5ca28efc8a80c591412fab5821d81.zip
ffmpeg-streaming-dca03ec5f4d5ca28efc8a80c591412fab5821d81.tar.gz
ass_split: reindent
Diffstat (limited to 'libavcodec/ass_split.c')
-rw-r--r--libavcodec/ass_split.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c
index cdb1aa2..d3e8a8d 100644
--- a/libavcodec/ass_split.c
+++ b/libavcodec/ass_split.c
@@ -276,23 +276,23 @@ static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
if (section->format_header && !order) {
len = strlen(section->format_header);
if (buf[len] == ':' && !strncmp(buf, section->format_header, len)) {
- buf += len + 1;
- while (!is_eol(*buf)) {
- buf = skip_space(buf);
- len = strcspn(buf, ", \r\n");
- if (!(tmp = av_realloc_array(order, (*number + 1), sizeof(*order))))
- return NULL;
- order = tmp;
- order[*number] = -1;
- for (i=0; section->fields[i].name; i++)
- if (!strncmp(buf, section->fields[i].name, len)) {
- order[*number] = i;
- break;
- }
- (*number)++;
- buf = skip_space(buf + len + (buf[len] == ','));
- }
- ctx->field_order[ctx->current_section] = order;
+ buf += len + 1;
+ while (!is_eol(*buf)) {
+ buf = skip_space(buf);
+ len = strcspn(buf, ", \r\n");
+ if (!(tmp = av_realloc_array(order, (*number + 1), sizeof(*order))))
+ return NULL;
+ order = tmp;
+ order[*number] = -1;
+ for (i=0; section->fields[i].name; i++)
+ if (!strncmp(buf, section->fields[i].name, len)) {
+ order[*number] = i;
+ break;
+ }
+ (*number)++;
+ buf = skip_space(buf + len + (buf[len] == ','));
+ }
+ ctx->field_order[ctx->current_section] = order;
goto next_line;
}
}
OpenPOWER on IntegriCloud