[FFmpeg-cvslog] r24491 - trunk/libavformat/ffmdec.c

reimar subversion
Sun Jul 25 09:54:33 CEST 2010


Author: reimar
Date: Sun Jul 25 09:54:33 2010
New Revision: 24491

Log:
Move ffm_close function up to avoid a forward declaration.

Modified:
   trunk/libavformat/ffmdec.c

Modified: trunk/libavformat/ffmdec.c
==============================================================================
--- trunk/libavformat/ffmdec.c	Sun Jul 25 09:52:58 2010	(r24490)
+++ trunk/libavformat/ffmdec.c	Sun Jul 25 09:54:33 2010	(r24491)
@@ -252,7 +252,16 @@ static void adjust_write_index(AVFormatC
 }
 
 
-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"),



More information about the ffmpeg-cvslog mailing list