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...
... | ... |
@@ -43,8 +43,9 @@ typedef struct { |
43 | 43 |
static int timed_line(const char *ptr) |
44 | 44 |
{ |
45 | 45 |
char c; |
46 |
+ int fs, fe; |
|
46 | 47 |
return (sscanf(ptr, "%*u:%*u:%*u.%*u %*u:%*u:%*u.%*u %c", &c) == 1 || |
47 |
- sscanf(ptr, "@%*u @%*u %c", &c) == 1); |
|
48 |
+ (sscanf(ptr, "@%u @%u %c", &fs, &fe, &c) == 3 && fs < fe)); |
|
48 | 49 |
} |
49 | 50 |
|
50 | 51 |
static int jacosub_probe(AVProbeData *p) |