Fix compilation with libcelt on Apple OS X.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 23 Apr 2011 08:09:11 +0000 (10:09 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 23 Apr 2011 08:10:20 +0000 (10:10 +0200)
Fixes ticket #97.

libavcodec/libcelt_dec.c

index f0e908b..6f39654 100644 (file)
@@ -41,7 +41,9 @@ static int ff_celt_error_to_averror(int err)
         case CELT_INTERNAL_ERROR:   return AVERROR(EFAULT);
         case CELT_CORRUPTED_DATA:   return AVERROR_INVALIDDATA;
         case CELT_UNIMPLEMENTED:    return AVERROR(ENOTSUP);
+#ifdef ENOTRECOVERABLE
         case CELT_INVALID_STATE:    return AVERROR(ENOTRECOVERABLE);
+#endif
         case CELT_ALLOC_FAIL:       return AVERROR(ENOMEM);
         default:                    return AVERROR(EINVAL);
     }