*
* \sa filter, filter_node
*/
-struct private_mp4dec_data {
+struct private_aacdec_data {
NeAACDecHandle decoder;
NeAACDecFrameInfo frame_info;
long unsigned entry;
};
-static ssize_t mp4dec(char *input_buffer, size_t len, struct filter_node *fn)
+static ssize_t aacdec(char *input_buffer, size_t len, struct filter_node *fn)
{
- struct private_mp4dec_data *padd = fn->private_data;
+ struct private_aacdec_data *padd = fn->private_data;
struct filter_chain_info *fci = fn->fci;
unsigned long rate = 0;
unsigned char channels = 0;
return ret;
}
-static void mp4dec_open(struct filter_node *fn)
+static void aacdec_open(struct filter_node *fn)
{
- fn->private_data = para_calloc(sizeof(struct private_mp4dec_data));
- struct private_mp4dec_data *padd = fn->private_data;
+ fn->private_data = para_calloc(sizeof(struct private_aacdec_data));
+ struct private_aacdec_data *padd = fn->private_data;
fn->bufsize = AAC_OUTBUF_SIZE;
fn->buf = para_calloc(fn->bufsize);
padd->decoder = aac_open();
}
-static void mp4dec_close(struct filter_node *fn)
+static void aacdec_close(struct filter_node *fn)
{
- struct private_mp4dec_data *padd = fn->private_data;
+ struct private_aacdec_data *padd = fn->private_data;
NeAACDecClose(padd->decoder);
free(fn->buf);
*/
void aacdec_init(struct filter *f)
{
- f->open = mp4dec_open;
- f->convert = mp4dec;
- f->close = mp4dec_close;
+ f->open = aacdec_open;
+ f->convert = aacdec;
+ f->close = aacdec_close;
}