diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-03-10 13:17:50 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-03-10 13:17:50 +0000 |
commit | 2dc22a64b49613dd9f2cff82148c54d683951c88 (patch) | |
tree | 67e1ad382011e13970b4993b93b2b581b06ada2e /libavformat | |
parent | 9a894c48ae5dcb8cfc247d9085b35bc0da848421 (diff) | |
download | ffmpeg-2dc22a64b49613dd9f2cff82148c54d683951c88.tar.gz |
Fix memory leak in FFM demuxer
Originally committed as revision 22431 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ffmdec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 09f5779f68..90c806f2d5 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -512,6 +512,14 @@ static int ffm_probe(AVProbeData *p) 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 = { "ffm", NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"), @@ -519,6 +527,6 @@ AVInputFormat ffm_demuxer = { ffm_probe, ffm_read_header, ffm_read_packet, - NULL, + ffm_close, ffm_seek, }; |