diff --git a/libavcodec/ass_split.c b/libavcodec/ass_split.c index 2a3b76445e..a0b72542c7 100644 --- a/libavcodec/ass_split.c +++ b/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) {