[FFmpeg-devel] [PATCH] avio: Avoid endless loop in case no data arrives

Nicolas George nicolas.george at normalesup.org
Wed Mar 14 19:25:24 CET 2012

Le quintidi 25 ventôse, an CCXX, Andrey Utkin a écrit :
> This prevents situation when you launch ffmpeg or app to read UDP, and no data
> arrives at all (e.g. wrong port). Also sometimes opening stream fed via UDP is
> not interruptible. This patch fixes it.
> In fact, there was 'continue' "short-circuit" above interrupt check. Moved
> interrupt check to the top of loop.

This does not seem right: the continue is only triggered by EINTR, which is
is a rather exceptional situation, and should not prevent ff_check_interrupt
from doing its work in the very next round.

I believe there may be something more complex at work here. Can you post a
complete command that exhibits the problem?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120314/0a385983/attachment.asc>

More information about the ffmpeg-devel mailing list