OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e606cc
)
improve probe and give it the max score
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 15:23:41 +0000
(15:23 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 15:23:41 +0000
(15:23 +0000)
Originally committed as revision 7667 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
4aaeae6
..
a833802
100644
(file)
--- a/
libavformat/flvdec.c
+++ b/
libavformat/flvdec.c
@@
-34,8
+34,8
@@
static int flv_probe(AVProbeData *p)
if (p->buf_size < 6)
return 0;
d = p->buf;
- if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V') {
- return
50
;
+ if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V'
&& d[3] < 5 && d[5]==0
) {
+ return
AVPROBE_SCORE_MAX
;
}
return 0;
}