Mercurial > libavformat.hg
changeset 5805:ee47b525644c libavformat
Fix memory leak in FFM demuxer
author | vitor |
---|---|
date | Wed, 10 Mar 2010 13:17:50 +0000 |
parents | 9f349253996d |
children | cc7800226186 |
files | ffmdec.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ffmdec.c Wed Mar 10 09:20:32 2010 +0000 +++ b/ffmdec.c Wed Mar 10 13:17:50 2010 +0000 @@ -512,6 +512,14 @@ 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 @@ ffm_probe, ffm_read_header, ffm_read_packet, - NULL, + ffm_close, ffm_seek, };