[FFmpeg-cvslog] r22431 - trunk/libavformat/ffmdec.c

Baptiste Coudurier baptiste.coudurier
Wed Mar 10 20:43:47 CET 2010


Hi Vitor,

On 03/10/2010 05:17 AM, vitor wrote:
> Author: vitor
> Date: Wed Mar 10 14:17:50 2010
> New Revision: 22431
>
> Log:
> Fix memory leak in FFM demuxer
>
> Modified:
>     trunk/libavformat/ffmdec.c
>
> Modified: trunk/libavformat/ffmdec.c
> ==============================================================================
> --- trunk/libavformat/ffmdec.c	Wed Mar 10 13:29:44 2010	(r22430)
> +++ trunk/libavformat/ffmdec.c	Wed Mar 10 14:17:50 2010	(r22431)
> @@ -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);
> +}
> +

I believe there could be a better place to put this code, since IIRC 
ffmpeg -i <file> -rc_eq <....> <outfile> leaks memory as well.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-cvslog mailing list