[FFmpeg-devel] [PATCH] avformat/unix: properly handling timeout at reading

Nicolas George george at nsup.org
Tue Mar 20 23:41:12 EET 2018

Bodecs Bela (2018-03-20):
> start a. and in a separate terminal window start b.  After 10 seconds a.
> terminates but b. remains running on infinite time.

Ok, got it.

>						      But I expected b. to
> terminate after 1 sec (1000000 microsec) when no data received because a.
> terminated.

Your expectation is wrong: it should terminate immediately.

The correct fix is to return AVERROR_EOF, but only if the socket type is


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180320/79dd4719/attachment.sig>

More information about the ffmpeg-devel mailing list