mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Update media timestamp regex to allow negative values
This commit is contained in:
parent
7b82a3c889
commit
2f2fc8ca01
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
public final class WebvttExtractor implements Extractor {
|
||||
|
||||
private static final Pattern LOCAL_TIMESTAMP = Pattern.compile("LOCAL:([^,]+)");
|
||||
private static final Pattern MEDIA_TIMESTAMP = Pattern.compile("MPEGTS:(\\d+)");
|
||||
private static final Pattern MEDIA_TIMESTAMP = Pattern.compile("MPEGTS:(-?\\d+)");
|
||||
private static final int HEADER_MIN_LENGTH = 6 /* "WEBVTT" */;
|
||||
private static final int HEADER_MAX_LENGTH = 3 /* optional Byte Order Mark */ + HEADER_MIN_LENGTH;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue