Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-23 12:09:11 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-23 12:10:20 +0400
commite499187f2eed5a1e488b0da589dbe89f1c5dc480 (patch)
tree15a223e50737e637577ef0928430a3616d6f4b9e /libavcodec/libcelt_dec.c
parent4b5c21757bf614b09c94cb5aef5f89ba885b0bd9 (diff)
Fix compilation with libcelt on Apple OS X.
Fixes ticket #97.
Diffstat (limited to 'libavcodec/libcelt_dec.c')
-rw-r--r--libavcodec/libcelt_dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libcelt_dec.c b/libavcodec/libcelt_dec.c
index f0e908b39c..6f3965401c 100644
--- a/libavcodec/libcelt_dec.c
+++ b/libavcodec/libcelt_dec.c
@@ -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);
}