[FFmpeg-devel] mpegts memory leak

Carl Eugen Hoyos cehoyos
Tue Sep 28 22:49:20 CEST 2010


Uve W. Rick <Uve.Rick <at> uav.com> writes:

> The patch keeps the functionality the same as before, where the previous
> packet is discarded.

Is this hunk related?

> +    ts->stop_parse = 1;
>      pes->total_size = MAX_PES_PAYLOAD;
>      pes->buffer = av_malloc(pes->total_size+FF_INPUT_BUFFER_PADDING_SIZE);
>      if (!pes->buffer)
>          return AVERROR(ENOMEM);
> -    ts->stop_parse = 1;

If not, please remove it.

Carl Eugen




More information about the ffmpeg-devel mailing list