[FFmpeg-devel] r22718 in libavformat/rtsp.c uses non-portable errno

Ramiro Polla ramiro.polla
Sat Apr 3 00:51:48 CEST 2010

On Fri, Apr 2, 2010 at 5:15 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> On Fri, Apr 2, 2010 at 4:09 PM, Sam Gerstein <sgerstein at bluefinlab.com> wrote:
>> On Thu, Apr 1, 2010 at 10:27 AM, Tom Evans <tevans.uk at googlemail.com> wrote:
>>> This change introduces a use of ETIME, which as far as I can tell, is
>>> a non-portable error number (it certainly isn't available in FreeBSD).
>>> Could this be replaced with a different errno? Perhaps ETIMEDOUT ?
>> I see only now that ETIME is officially optional- agreed, change it to
>> ETIMEDOUT. ?Patch attached! ?Apologies for that.
> Applied.
> Can the Windows / cygwin people please generate a patch against
> os_support.h to add this as a WSA define?

Why is this not a network error?
-            return AVERROR(ETIMEDOUT);
+            return AVERROR(FF_NETERROR(ETIMEDOUT));

More information about the ffmpeg-devel mailing list