avformat/udp: Add a delay between packets for streaming to clients with short buffer
authorPavel Nikiforov <nikiforov.pavel@gmail.com>
Tue, 8 Mar 2016 20:27:45 +0000 (23:27 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 May 2016 23:39:22 +0000 (01:39 +0200)
commit413c842a697866b62ea5dbb5e5fa54ae990d503e
tree038b49228777bd97151b269c238abe6db37ed8cc
parent49640ae315abf2f38df368763fd753383a1381e4
avformat/udp: Add a delay between packets for streaming to clients with short buffer

This commit enables sending UDP packets in a background thread with specified delay.
When sending packets without a delay some devices with small RX buffer
( MAG200 STB, for example) will drop tail packets in bursts causing
decoding errors.

To use it specify "fifo_size" with "packet_gap" .

The output url will looks like udp://xxx:yyy?fifo_size=<output fifo
size>&packet_gap=<delay in usecs>

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/protocols.texi
libavformat/udp.c