mirror of https://git.ffmpeg.org/ffmpeg.git
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.
This commit is contained in:
parent
e5dd4ae728
commit
c088b7f389
|
@ -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…
Reference in New Issue