[FFmpeg-cvslog] Fix compilation with libcelt on Apple OS X.
Carl Eugen Hoyos
git at videolan.org
Sat Apr 23 10:31:42 CEST 2011
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Apr 23 10:09:11 2011 +0200| [e499187f2eed5a1e488b0da589dbe89f1c5dc480] | committer: Carl Eugen Hoyos
Fix compilation with libcelt on Apple OS X.
Fixes ticket #97.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e499187f2eed5a1e488b0da589dbe89f1c5dc480
---
libavcodec/libcelt_dec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libcelt_dec.c b/libavcodec/libcelt_dec.c
index f0e908b..6f39654 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);
}
More information about the ffmpeg-cvslog
mailing list