mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
avformat/jacosubdec: make probing less tolerant.
Fixes a failure with probetest: ./tools/probetest 8192 500000 [...] Failure of jacosub probing code with score=51 type=1 p=CAB size=16 Random data was: 00000000 40 37 40 30 93 01 48 e0 09 96 10 90 78 0f 0c 10 @7@0..H.....x...
This commit is contained in:
parent
b31587af4b
commit
722fb81dc5
@ -43,8 +43,9 @@ typedef struct {
|
||||
static int timed_line(const char *ptr)
|
||||
{
|
||||
char c;
|
||||
int fs, fe;
|
||||
return (sscanf(ptr, "%*u:%*u:%*u.%*u %*u:%*u:%*u.%*u %c", &c) == 1 ||
|
||||
sscanf(ptr, "@%*u @%*u %c", &c) == 1);
|
||||
(sscanf(ptr, "@%u @%u %c", &fs, &fe, &c) == 3 && fs < fe));
|
||||
}
|
||||
|
||||
static int jacosub_probe(AVProbeData *p)
|
||||
|
Loading…
Reference in New Issue
Block a user