/* /// "Exp1to3()" */
static void Exp1to3(MACEContext *ctx,
- uint8_t *inBuffer,
+ const uint8_t *inBuffer,
void *outBuffer,
uint32_t cnt,
uint32_t numChannels,
/* /// "Exp1to6()" */
static void Exp1to6(MACEContext *ctx,
- uint8_t *inBuffer,
+ const uint8_t *inBuffer,
void *outBuffer,
uint32_t cnt,
uint32_t numChannels,
}
/* \\\ */
-static int mace_decode_init(AVCodecContext * avctx)
+static av_cold int mace_decode_init(AVCodecContext * avctx)
{
if (avctx->channels > 2)
return -1;
+ avctx->sample_fmt = SAMPLE_FMT_S16;
return 0;
}
static int mace_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- uint8_t *buf, int buf_size)
+ const uint8_t *buf, int buf_size)
{
short *samples;
MACEContext *c = avctx->priv_data;
NULL,
NULL,
mace_decode_frame,
+ .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"),
};
AVCodec mace6_decoder = {
NULL,
NULL,
mace_decode_frame,
+ .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"),
};