[Ffmpeg-devel] BeOS cleanup work in progress
Michael Niedermayer
michaelni
Sat Jan 27 12:38:21 CET 2007
Hi
On Sat, Jan 27, 2007 at 11:10:53AM +0100, Fran?ois Revol wrote:
[...]
> > also abs(AVERROR_*) if we do agree on them should have the same value
> > as
> > abs(E*) that way mapping from one to the other becomes much simpler
>
> Except E* don't have the same value on all platforms.
> It pretty much falls down to my first idea which was
>
> /* os_support.h or whatever */
> #ifdef __BEOS__
that should be #if ENOMEM < 0
> # define FFERR(e) (e)
> #else
> # define FFERR(e) (-(e))
> #endif
AVERR() as this should be an exportet macro (the user after all should be
able to test for specific errors)
>
>
> ...
> return FFERR(ENOMEM);
> ...
[...]
>
> It suppresses the need for AVERROR_* leaving all the semantics attached
> to the posix errors without folding them to 10 cases. (but we still
> need to handle OSes which don't have some defined).
are there any? do we really use such obscure E* ?
>
> For the time being we could keep AVERROR_* as #defined to FFERR(E*)
possible
> until we increment the versions.
no, the major versions need to be bumped if the values change
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070127/c54cc596/attachment.pgp>
More information about the ffmpeg-devel
mailing list