Mercurial > libavformat.hg
changeset 6310:3d61da0c6e41 libavformat
Move ffm_close function up to avoid a forward declaration.
author | reimar |
---|---|
date | Sun, 25 Jul 2010 07:54:33 +0000 |
parents | 024f95630898 |
children | daed56aa74bc |
files | ffmdec.c |
diffstat | 1 files changed, 10 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/ffmdec.c Sun Jul 25 07:52:58 2010 +0000 +++ b/ffmdec.c Sun Jul 25 07:54:33 2010 +0000 @@ -252,7 +252,16 @@ } -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 @@ 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"),