Update media timestamp regex to allow negative values
This commit is contained in:
parent
7b82a3c889
commit
2f2fc8ca01
@ -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…
x
Reference in New Issue
Block a user