Commit a048d9ba authored by philipjsg's avatar philipjsg

* Add a probe function for FFM files


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@580 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a662fdc
......@@ -608,11 +608,19 @@ static int ffm_read_close(AVFormatContext *s)
return 0;
}
static int ffm_probe(AVProbeData *p)
{
if (memcmp(p->buf, "FFM", 3) == 0)
return AVPROBE_SCORE_MAX + 1;
return 0;
}
AVInputFormat ffm_iformat = {
"ffm",
"ffm format",
sizeof(FFMContext) + FFM_PACKET_SIZE,
NULL,
ffm_probe,
ffm_read_header,
ffm_read_packet,
ffm_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