Mercurial > libavformat.hg
changeset 2603:4a3957734e85 libavformat
cosmetics: Move asf_read_close() down to get rid of a forward declaration.
author | diego |
---|---|
date | Sun, 14 Oct 2007 17:44:38 +0000 |
parents | 3afd8e729331 |
children | cb5f9ba6b63b |
files | asf.c |
diffstat | 1 files changed, 13 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/asf.c Sun Oct 14 13:32:25 2007 +0000 +++ b/asf.c Sun Oct 14 17:44:38 2007 +0000 @@ -878,21 +878,6 @@ return 0; } -static void asf_reset_header(AVFormatContext *s); - -static int asf_read_close(AVFormatContext *s) -{ - int i; - - asf_reset_header(s); - for(i=0;i<s->nb_streams;i++) { - AVStream *st = s->streams[i]; - av_free(st->priv_data); - av_free(st->codec->palctrl); - } - return 0; -} - // Added to support seeking after packets have been read // If information is not reset, read_packet fails due to // leftover information from previous reads @@ -931,6 +916,19 @@ asf->asf_st= NULL; } +static int asf_read_close(AVFormatContext *s) +{ + int i; + + asf_reset_header(s); + for(i=0;i<s->nb_streams;i++) { + AVStream *st = s->streams[i]; + av_free(st->priv_data); + av_free(st->codec->palctrl); + } + return 0; +} + static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { ASFContext *asf = s->priv_data;