[SCM] libav/experimental: * Add a probe function for FFM files

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:32:03 UTC 2013


The following commit has been merged in the experimental branch:
commit 07c4ed85f765a469cf2913264d158cc6129e5de1
Author: Philip Gladstone <philipjsg at users.sourceforge.net>
Date:   Fri May 24 02:06:51 2002 +0000

    * Add a probe function for FFM files
    
    Originally committed as revision 580 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libav/ffm.c b/libav/ffm.c
index a1858d2..f6c6dea 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,

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list