]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ass_split.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / ass_split.c
index 2a3b76445ece2902bfff2c2f0cef3d3e34a200a0..a0b72542c745d915bf0c8685b116d5125cedb68b 100644 (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) {