Commit a7a4a698 authored by vitor's avatar vitor

Fix memory leak in FFM demuxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22431 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 44e07b44
...@@ -512,6 +512,14 @@ static int ffm_probe(AVProbeData *p) ...@@ -512,6 +512,14 @@ static int ffm_probe(AVProbeData *p)
return 0; return 0;
} }
static void ffm_close(AVFormatContext *s)
{
int i;
for (i = 0; i < s->nb_streams; i++)
av_freep(&s->streams[i]->codec->rc_eq);
}
AVInputFormat ffm_demuxer = { AVInputFormat ffm_demuxer = {
"ffm", "ffm",
NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"), NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),
...@@ -519,6 +527,6 @@ AVInputFormat ffm_demuxer = { ...@@ -519,6 +527,6 @@ AVInputFormat ffm_demuxer = {
ffm_probe, ffm_probe,
ffm_read_header, ffm_read_header,
ffm_read_packet, ffm_read_packet,
NULL, ffm_close,
ffm_seek, ffm_seek,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment