[FFmpeg-devel] [PATCH] Replace ENOSYS by ENOTSUP

Ramiro Ribeiro Polla ramiro
Fri Aug 17 00:08:18 CEST 2007


Michael Niedermayer wrote:
> Hi
>
> On Wed, Aug 15, 2007 at 04:34:25PM -0300, Ramiro Ribeiro Polla wrote:
> [...]
>   
>> What do you think about #ifdef'ing the definition of AVERROR_*? User apps 
>> will always have to check for AVERROR_*, instead of AVERROR(*), and will 
>> get an strerror() string on systems that have that error. Attached patch is 
>> an example of this.
>>     
>
> ive a bad feeling about this
> something tells me that libavcodecs compilation and the user apps might
> have different E* available from their included headers in some cases ...
>   

Right. It even happens inside lavc too. pthreads-win32 defines ENOTSUP 
to 48, so any program that includes pthread.h before avcodec would get 
that other value...




More information about the ffmpeg-devel mailing list