[FFmpeg-devel] [PATCH] Move error codes definitions from lavc to lavu

Stefano Sabatini stefano.sabatini-lala
Tue Jul 21 01:54:39 CEST 2009

On date Monday 2009-07-20 17:24:45 +0200, Michael Niedermayer encoded:
> On Sun, Jul 19, 2009 at 12:09:16PM +0200, Stefano Sabatini wrote:
> > Hi, as in subject,
> > 
> > this is required if we want for example move the error handling code
> > to lavu, as it uses it. Also reduces the clutter in avcodec.h.
> i am fine with the move in priciple but didnt we want to deprecate the
> AVERROR_* macros in favor of AVERROR(E*) ?


Also how AVERROR(XXX) is better than AVERRROR_XXX?

Also are we sure mapping A/V multimedia specific errors to POSIX
errors is a good idea?

Also how can we say that e.g. -MKTAG('P','A','W','E') doesn't clutter
with a POSIX error code?

Also the use of the POSIX error codes is arguable (ENOENT is used for
example when we don't find an option in a context, doxy is "No such
file or directory"), EILSEQ -> "unknown format", EDOM -> "Number
syntax expected in filename".

Also how can we map an error code to an error message?

All these questions raise the old problem of how to deal more sanely
with errors in libav*... and since I don't want to get stucked there,
I'd say to just do the move and then eventually fix it.

FFmpeg = Funny Freak Mastodontic Powered Erudite Guru

More information about the ffmpeg-devel mailing list