/*
- * Xiph CELT / Opus decoder using libcelt
+ * Xiph CELT decoder using libcelt
* Copyright (c) 2011 Nicolas George
*
* This file is part of FFmpeg.
static int ff_celt_error_to_averror(int err)
{
- switch(err) {
+ switch (err) {
case CELT_BAD_ARG: return AVERROR(EINVAL);
#ifdef CELT_BUFFER_TOO_SMALL
case CELT_BUFFER_TOO_SMALL: return AVERROR(ENOBUFS);
}
celt->discard *= c->channels * sizeof(int16_t);
}
- if(c->extradata_size >= 8) {
+ if (c->extradata_size >= 8) {
unsigned version = AV_RL32(c->extradata + 4);
unsigned lib_version = ff_celt_bitstream_version_hack(celt->mode);
if (version != lib_version)
"improperly decoded by libcelt for version 0x%x.\n",
version, lib_version);
}
+ c->sample_fmt = AV_SAMPLE_FMT_S16;
return 0;
}
.close = libcelt_dec_close,
.decode = libcelt_dec_decode,
.capabilities = 0,
- .long_name = NULL_IF_CONFIG_SMALL("Xiph CELT/Opus decoder using libcelt"),
+ .long_name = NULL_IF_CONFIG_SMALL("Xiph CELT decoder using libcelt"),
};