[Ffmpeg-devel] BeOS cleanup work in progress
Sat Jan 27 12:38:21 CET 2007
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)
> # define FFERR(e) (-(e))
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*)
> 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
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel