diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-24 02:06:51 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-05-24 02:06:51 +0000 |
commit | 07c4ed85f765a469cf2913264d158cc6129e5de1 (patch) | |
tree | 30447790dcb240fb768f05494440c5dc21fd5f79 /libav/ffm.c | |
parent | b582f314f7876571ee0877c318caabd26fad093c (diff) | |
download | ffmpeg-07c4ed85f765a469cf2913264d158cc6129e5de1.tar.gz |
* Add a probe function for FFM files
Originally committed as revision 580 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/ffm.c')
-rw-r--r-- | libav/ffm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libav/ffm.c b/libav/ffm.c index a1858d2824..f6c6deae63 100644 --- a/libav/ffm.c +++ b/libav/ffm.c @@ -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, |