projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c3e2f7
)
flac probe
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 10 Aug 2007 16:06:18 +0000
(16:06 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 10 Aug 2007 16:06:18 +0000
(16:06 +0000)
closes issue83
Originally committed as revision 10059 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/raw.c
patch
|
blob
|
history
diff --git
a/libavformat/raw.c
b/libavformat/raw.c
index
e03fad5
..
fc8bfaf
100644
(file)
--- a/
libavformat/raw.c
+++ b/
libavformat/raw.c
@@
-434,6
+434,12
@@
static int ac3_probe(AVProbeData *p)
else return 0;
}
+static int flac_probe(AVProbeData *p)
+{
+ if(memcmp(p->buf, "fLaC", 4)) return 0;
+ else AVPROBE_SCORE_MAX / 2;
+}
+
AVInputFormat shorten_demuxer = {
"shn",
"raw shorten",
@@
-450,7
+456,7
@@
AVInputFormat flac_demuxer = {
"flac",
"raw flac",
0,
-
NULL
,
+
flac_probe
,
flac_read_header,
raw_read_partial_packet,
raw_read_close,