SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The error:
  2. CC  libcelt_dec.o
  3. /src/ffmpeg/libavcodec/libcelt_dec.c: In function 'ff_celt_error_to_averror':
  4. /src/ffmpeg/libavcodec/libcelt_dec.c:44: error: 'ENOTRECOVERABLE' undeclared (first use in this function)
  5. /src/ffmpeg/libavcodec/libcelt_dec.c:44: error: (Each undeclared identifier is reported only once
  6. /src/ffmpeg/libavcodec/libcelt_dec.c:44: error: for each function it appears in.)
  7.  
  8.  
  9.  
  10. The relevant area of libcelt_dec.c:
  11.  
  12. static int ff_celt_error_to_averror(int err)
  13. {
  14.     switch(err) {
  15.         case CELT_BAD_ARG:          return AVERROR(EINVAL);
  16. #ifdef CELT_BUFFER_TOO_SMALL
  17.         case CELT_BUFFER_TOO_SMALL: return AVERROR(ENOBUFS);
  18. #endif
  19.         case CELT_INTERNAL_ERROR:   return AVERROR(EFAULT);
  20.         case CELT_CORRUPTED_DATA:   return AVERROR_INVALIDDATA;
  21.         case CELT_UNIMPLEMENTED:    return AVERROR(ENOTSUP);
  22.         case CELT_INVALID_STATE:    return AVERROR(ENOTRECOVERABLE);
  23.         case CELT_ALLOC_FAIL:       return AVERROR(ENOMEM);
  24.         default:                    return AVERROR_UNKNOWN;
  25.     }
  26. }
RAW Paste Data
Top