Commit e499187f authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix compilation with libcelt on Apple OS X.

Fixes ticket #97.
parent 4b5c2175
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment