Commit 9871f3bf authored by michael's avatar michael

flac probe

closes issue83


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10059 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 28701b80
...@@ -434,6 +434,12 @@ static int ac3_probe(AVProbeData *p) ...@@ -434,6 +434,12 @@ static int ac3_probe(AVProbeData *p)
else return 0; 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 = { AVInputFormat shorten_demuxer = {
"shn", "shn",
"raw shorten", "raw shorten",
...@@ -450,7 +456,7 @@ AVInputFormat flac_demuxer = { ...@@ -450,7 +456,7 @@ AVInputFormat flac_demuxer = {
"flac", "flac",
"raw flac", "raw flac",
0, 0,
NULL, flac_probe,
flac_read_header, flac_read_header,
raw_read_partial_packet, raw_read_partial_packet,
raw_read_close, raw_read_close,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment