]> git.sesse.net Git - ffmpeg/commitdiff
ass_split: reindent
authorRodger Combs <rodger.combs@gmail.com>
Sat, 10 Sep 2016 05:29:50 +0000 (00:29 -0500)
committerRodger Combs <rodger.combs@gmail.com>
Mon, 12 Sep 2016 20:57:51 +0000 (15:57 -0500)
libavcodec/ass_split.c

index cdb1aa2d6560acb7293c5a15939de853e158f56d..d3e8a8d5559038ea1699ab38c30057e2d48466c3 100644 (file)
@@ -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;
             }
         }