projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b582f31
)
* Add a probe function for FFM files
author
Philip Gladstone
<philipjsg@users.sourceforge.net>
Fri, 24 May 2002 02:06:51 +0000
(
02:06
+0000)
committer
Philip Gladstone
<philipjsg@users.sourceforge.net>
Fri, 24 May 2002 02:06:51 +0000
(
02:06
+0000)
Originally committed as revision 580 to svn://svn.ffmpeg.org/ffmpeg/trunk
libav/ffm.c
patch
|
blob
|
history
diff --git
a/libav/ffm.c
b/libav/ffm.c
index
a1858d2
..
f6c6dea
100644
(file)
--- 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,