[FFmpeg-devel] [RFC] LOAS (aka LATM) demuxer

Martin Storsjö martin
Wed Aug 4 16:42:34 CEST 2010


On Sun, 1 Aug 2010, Janne Grunau wrote:

> +                } else {
> +                    copy_audio_specific_config(stream_cfg, prev_stream_cfg);
> +                }
> +
> +                st->codec->extradata = av_malloc(stream_cfg->extrasize +
> +                                                 FF_INPUT_BUFFER_PADDING_SIZE);

You probably want to free the previous extradata here, too, to avoid 
leaks.

// Martin



More information about the ffmpeg-devel mailing list