[FFmpeg-devel] [RFC] The meaning of AVERROR_NOTSUPP

Stefano Sabatini stefano.sabatini-lala
Wed Apr 21 23:24:03 CEST 2010


On date Sunday 2010-04-18 21:27:25 +0200, Stefano Sabatini encoded:
[...]
> Subject: [PATCH 3/4] Drop AVERROR_NOTSUPP at the next major bump, use AVERROR(ENOSYS)
>  instead which is semantically equivalent.
> 
> ---
>  libavutil/error.c |    1 -
>  libavutil/error.h |    2 +-
>  2 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/libavutil/error.c b/libavutil/error.c
> index 88d9ad6..a1a0b87 100644
> --- a/libavutil/error.c
> +++ b/libavutil/error.c
> @@ -27,7 +27,6 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
>      switch (errnum) {
>      case AVERROR_EOF:               errstr = "End of file"; break;
>      case AVERROR_INVALIDDATA:       errstr = "Invalid data found when processing input"; break;
> -    case AVERROR_NOTSUPP:           errstr = "Operation not supported"; break;
>      case AVERROR_NUMEXPECTED:       errstr = "Number syntax expected in filename"; break;
>      case AVERROR_PATCHWELCOME:      errstr = "Not yet implemented in FFmpeg, patches welcome"; break;
>      }
> diff --git a/libavutil/error.h b/libavutil/error.h
> index c757981..2220be9 100644
> --- a/libavutil/error.h
> +++ b/libavutil/error.h
> @@ -43,12 +43,12 @@
>  #define AVERROR_NOENT       AVERROR(ENOENT)  ///< No such file or directory
>  #define AVERROR_NOFMT       AVERROR(EILSEQ)  ///< Unknown format
>  #define AVERROR_NOMEM       AVERROR(ENOMEM)  ///< Not enough memory
> +#define AVERROR_NOTSUPP     AVERROR(ENOSYS)  ///< Operation not supported
>  #define AVERROR_NUMEXPECTED AVERROR(EDOM)    ///< Number syntax expected in filename
>  #define AVERROR_UNKNOWN     AVERROR(EINVAL)  ///< Unknown error
>  #endif
>  
>  #define AVERROR_EOF         AVERROR(EPIPE)   ///< End of file
> -#define AVERROR_NOTSUPP     AVERROR(ENOSYS)  ///< Operation not supported
>  
>  #define AVERROR_PATCHWELCOME    (-MKTAG('P','A','W','E')) ///< Not yet implemented in FFmpeg, patches welcome

Ping.
-- 
FFmpeg = Fanciful Forgiving Most Pacific Enigmatic Guru



More information about the ffmpeg-devel mailing list