Browse Source

ass_split: accept files with only \n and no \r.

The +1 is there to skip the ','.
With \r\n, the +1 skips the \r but that is ok.
With only \n, the +1 skips it and all hell breaks loose.
tags/n0.11
Nicolas George 13 years ago
parent
commit
c088b7f389
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ass_split.c

+ 1
- 1
libavcodec/ass_split.c View File

@@ -232,7 +232,7 @@ static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
break;
}
(*number)++;
buf = skip_space(buf + len + 1);
buf = skip_space(buf + len + (buf[len] == ','));
}
ctx->field_order[ctx->current_section] = order;
} else if (section->fields_header) {


Loading…
Cancel
Save