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

Martin Storsjö martin
Fri Sep 3 11:11:09 CEST 2010


Hi,

This is a respin of the RTP reordering patches from May. Ronald was quite 
ok with the actual reordering logic (as far as I remember), but Michael 
wanted to make sure we could set a maximum delay for the reordering. Back 
then, I made one attempt at this, but I've rethought the max delay logic 
now, and I'd say this new attempt is both better and much more straight 
forward than the previous one.

In order to set max_delay for demuxers, I add an AVOption for that field. 
Without setting it (when max_delay is 0), no packet reordering will be 
done, packets are passed straight through.

Attached is also a patch (not for review) for making rtpenc send packets 
in non-linear order, just for testing this. I'm happy to say that our code 
manages to decode the packets sent in non-linear order just fine with this 
reordering code, as does QuickTime. VLC, with their current RTSP lib, 
didn't work perfectly, though.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Split-out-the-part-of-rtp_parse_packet-that-does-the.patch
Type: text/x-diff
Size: 5115 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e341d9a2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Reorder-received-RTP-packets.patch
Type: text/x-diff
Size: 9992 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e341d9a2/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Return-a-queued-packet-if-it-has-been-in-the-queue-f.patch
Type: text/x-diff
Size: 3529 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e341d9a2/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-an-AVOption-max_delay-for-AVFormatContext-max_de.patch
Type: text/x-diff
Size: 1247 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e341d9a2/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtpenc-mix-send-order.patch
Type: text/x-diff
Size: 2677 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e341d9a2/attachment-0004.patch>



More information about the ffmpeg-devel mailing list