You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
* Add a probe function for FFM files
Originally committed as revision 580 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
10
libav/ffm.c
10
libav/ffm.c
@@ -608,11 +608,19 @@ static int ffm_read_close(AVFormatContext *s)
|
|||||||
return 0;
|
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 = {
|
AVInputFormat ffm_iformat = {
|
||||||
"ffm",
|
"ffm",
|
||||||
"ffm format",
|
"ffm format",
|
||||||
sizeof(FFMContext) + FFM_PACKET_SIZE,
|
sizeof(FFMContext) + FFM_PACKET_SIZE,
|
||||||
NULL,
|
ffm_probe,
|
||||||
ffm_read_header,
|
ffm_read_header,
|
||||||
ffm_read_packet,
|
ffm_read_packet,
|
||||||
ffm_read_close,
|
ffm_read_close,
|
||||||
|
Reference in New Issue
Block a user