[Ffmpeg-devel] HTTP probing issue... [PATCH]

François Revol revol
Wed Feb 28 19:02:26 CET 2007

> Hey guys,
> On Feb 28, 2007, Francois Revol wrote:
> >>> EPIPE happens when you write to a pipe already closed at the 
> > > > other
> >>> end
> >>> (and you dont catch SIGPIPE). ESPIPE seems more likely for a seek
> >>> operation, no?
> >>
> >> I would say yes, comments ?
> >
> > As long as you use AVERROR() properly it's ok for me :D
> Now that you're on there anyway, I'm trying to implement decent error  
> handling in a graphical way, i.e. any use of av_log() is useless (not  
> internationalizable), I would like to rely purely on error return  
> values. I've currently implemented a hack where I add my own  
> AVERROR_SYSERR and set errno in a member of the context. Im' also  

That's what AVUNERROR() is about
it returns one of the posix error codes which you can pass to 
which should return an human readable string, possibly already 
translated, not sure about this.

int err = av_foo();
if (err < 0) {
	printf("%s\n", strerror(AVUNERROR(err));


More information about the ffmpeg-devel mailing list