[FFmpeg-devel] [PATCH] UDP hangs with no input data

Jindrich Makovicka makovick
Tue Nov 11 14:47:05 CET 2008


Hi,

when there are no incoming packets on the specified UDP address/port,
libavformat waits indefinitely, and can be only terminated using
SIGKILL. The attached patches add

1) UDP receive timeout, which is 10 seconds by default, and adjustable
in the URL, and
2) error check in the stream probing code so the probe can terminate
as soon as possible in the case there are actually no data flowing.

-- 
Jindrich Makovicka
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: udp-timeout.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081111/1fee4a5a/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: utils.c.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081111/1fee4a5a/attachment.asc>



More information about the ffmpeg-devel mailing list