[MPlayer-dev-eng] Re: [PATCH] Save memory in demux_rtp.cpp
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Feb 26 01:13:57 CET 2007
Nico Sabbi <nicola_sabbi <at> fastwebnet.it> writes:
[...]
> > void ReadBufferQueue::savePendingBuffer(demux_packet_t* dp) {
> > + resize_demux_packet(dp, dp->len);
> > // Keep this buffer around, until MPlayer asks for it later:
> > if (pendingDPTail == NULL) {
> > pendingDPHead = pendingDPTail = dp;
>
> dp->len is already the actual size of the packet, unless you call it
> with 0. Is it the case?
The packet was allocated with
dp = new_demux_packet(MAX_RTP_FRAME_SIZE);
but the patch resizes it to its actual size.
Carl Eugen
More information about the MPlayer-dev-eng
mailing list