[FFmpeg-devel] [PATCH] Replace ENOSYS by ENOTSUP

Michael Niedermayer michaelni
Thu Aug 16 23:23:25 CEST 2007


Hi

On Thu, Aug 16, 2007 at 08:56:29PM +0200, Fran?ois Revol wrote:
[...]
> 
> 
> Now, another option is to just use a base value to split the error 
> space.
> On Unix it could be something like 500000 as I saw in libusb, and on 
> BeOS I'd use B_ERRORS_END + something
> 
> I already presented this option.
> 
> #define AVERROR_NOMEM AVERROR(ENOMEM)
> #define AVERROR_WHATEVER AVERROR(AVERROR_BASE + 1)
> 
> Then:
> av_strerror(int e)
> {
> 	int err = AVUNERROR(e);
> 	if (e < AVERROR_BASE)
> 		return strerror(e);

i already said we CAN NOT call strerror() it is not thread safe amongth
other things

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- 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/20070816/483c9c89/attachment.pgp>



More information about the ffmpeg-devel mailing list