projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f8be6
)
avs: Increase magic value score above file extension score
author
Diego Biurrun
<diego@biurrun.de>
Mon, 25 Mar 2013 15:14:55 +0000
(16:14 +0100)
committer
Diego Biurrun
<diego@biurrun.de>
Sat, 4 May 2013 19:51:00 +0000
(21:51 +0200)
This should fix misdetection of AVS files as AviSynth scripts
when AviSynth support is enabled (Bugzilla #357).
libavformat/avs.c
patch
|
blob
|
history
diff --git
a/libavformat/avs.c
b/libavformat/avs.c
index
b96a122
..
3e95a36
100644
(file)
--- a/
libavformat/avs.c
+++ b/
libavformat/avs.c
@@
-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;
}