[FFmpeg-devel] [PATCH] add ENOENT support

François Revol revol
Sat May 12 14:34:02 CEST 2007


> Michael Niedermayer wrote:
> > Hi
> >
> > On Thu, May 10, 2007 at 12:17:34PM +0200, Benoit Fouet wrote:
> >   
> >> Hi,
> >>
> >> this patch uses url_fopen error code and creates a define
> >> for AVERROR_NOENT
> >>     
> >
> > patch ok
> >
> >
> >   
> >> i don't know whether it has to be splitted or not
> >>     
> >
> > addition of AVERROR_NOENT could be split off if you like, yes ...
> >
> applied both separately

Rejected.

AVERROR_* are *deprecated*.
They are only kept for compatibility with apps.
There is no reason to not use POSIX error codes directly with the 
AV[UN]ERROR() macros, that's what they are for. The libraries already 
returns more errors than the listed ones.
If you want to print an error just use strerror(AVUNERROR(e)).

Fran?ois.





More information about the ffmpeg-devel mailing list