Skip to content

Commit

Permalink
* Add a probe function for FFM files
Browse files Browse the repository at this point in the history
Originally committed as revision 580 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
Philip Gladstone committed May 24, 2002
1 parent b582f31 commit 07c4ed8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libav/ffm.c
Expand Up @@ -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,
Expand Down

0 comments on commit 07c4ed8

Please sign in to comment.