[FFmpeg-devel] [PATCH] RTP reordering, again

Martin Storsjö martin
Thu Sep 30 14:11:03 CEST 2010


On Sun, 26 Sep 2010, Luca Barbato wrote:

> 0001 -> Looks ok
> 0002 -> the memmove and memcpy might be avoided
> 0003 -> Looks ok

Updated patchset, changing the rtp packet queue into a linked list, to 
avoid memmoves when inserting/removing packets, and changed the rtsp code 
to use a dynamically allocated receive buffer, that can be handed off to 
the rtpdec code, to avoid memcpying the packet buffer.

(The same idea could also be used to hand over the buffer to the 
depacketizers, so they wouldn't have to memcpy the data if they need to 
store the packet, but that's a separate issue then.)

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rtsp-Use-a-dynamically-allocated-receive-buffer.patch
Type: text/x-diff
Size: 3237 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100930/c216ef69/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-rtsp-rtpdec-Allow-rtp_parse_packet-to-take-ownership.patch
Type: text/x-diff
Size: 2825 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100930/c216ef69/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-rtpdec-Split-out-the-part-of-rtp_parse_packet-that-d.patch
Type: text/x-diff
Size: 5192 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100930/c216ef69/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-rtpdec-Reorder-received-RTP-packets.patch
Type: text/x-diff
Size: 9612 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100930/c216ef69/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-rtsp-Return-a-queued-packet-if-it-has-been-in-the-qu.patch
Type: text/x-diff
Size: 3543 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100930/c216ef69/attachment-0004.patch>



More information about the ffmpeg-devel mailing list