[MPlayer-dev-eng] Re: [PATCH] Save memory in demux_rtp.cpp

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Feb 26 23:36:46 CET 2007


Hello,
On Mon, Feb 26, 2007 at 11:06:19PM +0100, Nico Sabbi wrote:
[...]
> new_demux_packet() and resize_demux_packet() both store the length of 
> the buffer in dp->len, so at any time dp->len is the amount of memory
> allocated;
> resize_demux_packet(dp, dp->len); is equivalent to a no-op, as you can 
> see:

Unless somewhere dp->len is changed without calling
resize_demux_packet (possibly out of performance considerations)...

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list