mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move ffm_close function up to avoid a forward declaration.
Originally committed as revision 24491 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
527b46ba26
commit
e36a39066c
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user