[FFmpeg-devel] [PATCH 0/6] Timeout option for http, AVOption-ize tcp, udp options

Andrey Utkin andrey.krieger.utkin at gmail.com
Thu Sep 13 02:43:27 CEST 2012


The purpose of this patchset is ability to set data i/o timeout on connection via protocols, in the generic way. Besides that, some generic things enhanced. And of course new bugs are loaded :)
With this patchset applied, udp, tcp, http protocols pick 'timeout' AVOption. This option affects both read and write modes.
UDP, TCP proto drivers in lavf took all options as URL parts before. Since now, they pick same args from both AVOptions and URL, with URL having higher priority. URL just gets parsed later and overwrites values set before, it was easier to do so.

Andrey Utkin (6):
  tcp: use timeout option consistently
  Document tcp proto 'timeout' parameter behavior
  Document tcp proto 'listen_timeout' option
  tcp: accept params through avio_open2() options
  http: add 'timeout' AVOption
  udp: pick params from AVOptions also

 doc/protocols.texi |    8 +++++
 libavformat/http.c |   20 ++++++++++++-
 libavformat/tcp.c  |   75 ++++++++++++++++++++++++++++++++++++++++-----------
 libavformat/udp.c  |   50 +++++++++++++++++++++++++++-------
 4 files changed, 125 insertions(+), 28 deletions(-)

-- 
1.7.8.6



More information about the ffmpeg-devel mailing list