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.
pull/3/merge
Nicolas George 13 years ago
parent e5dd4ae728
commit c088b7f389
  1. 2
      libavcodec/ass_split.c

@ -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