diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-25 07:54:33 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-25 07:54:33 +0000 |
commit | e36a39066c2220b95fe7d6cf0dac95c826896e12 (patch) | |
tree | 3966abf573f9e98e6b3e61d1326ac1fded28d34c /libavformat/ffmdec.c | |
parent | 527b46ba26124e51526d643c5e0f41c8160f286c (diff) | |
download | ffmpeg-e36a39066c2220b95fe7d6cf0dac95c826896e12.tar.gz |
Move ffm_close function up to avoid a forward declaration.
Originally committed as revision 24491 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r-- | libavformat/ffmdec.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 33301e677e..050702e1be 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -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"), |