Dear Experts,
I have been trying to decode AAC-LC audio streams using Ffmpeg-0.6.1.
FFMPEG is displaying a message "[aac @ 07027c50]channel element 0.0 is not
allocated" and exiting.
Can some body please help me in this?
Below is the sample code I used. I could decode G711 audio using a similar
setup but not successful in decoding AAC decoding.
Is there anything extra needs to be done in case of AAC?
avcodec_init();
avcodec_register_all();
avCodec = avcodec_find_decoder(CodecId );
avCodecContext = avcodec_alloc_context();
avcodec_open(avCodecContext, avCodec );
avCodecContext->sample_rate = 8000;
avCodecContext->channels = 1;
avcodec_decode_audio3( avCodecContext, output, &bytesProducedCurCall,
avPacket);
Regards,
Raja
Latest News at: http://www.indigovision.com/news2010.php
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user