]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ffmdec.c
Fix compile on Darwin (FATE). Compile error:
[ffmpeg] / libavformat / ffmdec.c
index 33301e677e994254572b03d1cd5b2b409f69a5cf..050702e1be93d0403e5a4fb67b484968245d8e38 100644 (file)
@@ -252,7 +252,16 @@ static void adjust_write_index(AVFormatContext *s)
 }
 
 
-static int ffm_close(AVFormatContext *s);
+static int ffm_close(AVFormatContext *s)
+{
+    int i;
+
+    for (i = 0; i < s->nb_streams; i++)
+        av_freep(&s->streams[i]->codec->rc_eq);
+
+    return 0;
+}
+
 
 static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
@@ -509,16 +518,6 @@ static int ffm_probe(AVProbeData *p)
     return 0;
 }
 
-static int ffm_close(AVFormatContext *s)
-{
-    int i;
-
-    for (i = 0; i < s->nb_streams; i++)
-        av_freep(&s->streams[i]->codec->rc_eq);
-
-    return 0;
-}
-
 AVInputFormat ffm_demuxer = {
     "ffm",
     NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),