[FFmpeg-cvslog] r10735 - trunk/libavformat/asf.c
diego
subversion
Sun Oct 14 19:44:39 CEST 2007
Author: diego
Date: Sun Oct 14 19:44:38 2007
New Revision: 10735
Log:
cosmetics: Move asf_read_close() down to get rid of a forward declaration.
Modified:
trunk/libavformat/asf.c
Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c (original)
+++ trunk/libavformat/asf.c Sun Oct 14 19:44:38 2007
@@ -878,21 +878,6 @@ static int asf_read_packet(AVFormatConte
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 @@ static void asf_reset_header(AVFormatCon
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;
More information about the ffmpeg-cvslog
mailing list