mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
avs: Increase magic value score above file extension score
This should fix misdetection of AVS files as AviSynth scripts when AviSynth support is enabled (Bugzilla #357).
This commit is contained in:
parent
e0f8be6413
commit
a8a45dfe25
@ -50,7 +50,9 @@ static int avs_probe(AVProbeData * p)
|
||||
|
||||
d = p->buf;
|
||||
if (d[0] == 'w' && d[1] == 'W' && d[2] == 0x10 && d[3] == 0)
|
||||
return AVPROBE_SCORE_EXTENSION;
|
||||
/* Ensure the buffer probe scores higher than the extension probe.
|
||||
* This avoids problems with misdetection as AviSynth scripts. */
|
||||
return AVPROBE_SCORE_EXTENSION + 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user