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