[FFmpeg-devel] [PATCH] rtsp EPROTONOSUPPORT => AVERROR_INVALIDDATA

pross at xvid.org pross
Mon Mar 24 23:17:28 CET 2008


On Mon, Mar 24, 2008 at 08:48:34AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Mon, Mar 24, 2008 at 2:46 AM, <pross at xvid.org> wrote:
> 
> > Maybe? The function could return AVERROR(FF_NETERROR(EPROTONOSUPPORT))
> > instead,
> > however this will preclude users on windows using strerror() to translate
> > the
> > error constant into human readable form.
> >
> 
> So how do people normally solve that (WSAE vs. E* return codes)? They're
> used in various places in ffmpeg (FF_NETERROR).

The majority of WinSock applications do not use stdlib ;-). Those that do
use stdlib, do not intermingle WSAE and E error codes.

FF_NETERROR does nothing more than name mangling. It doesn't help us convert
the WSAE *codes* to E codes.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080325/3f7e3c26/attachment.pgp>



More information about the ffmpeg-devel mailing list