Hi, all!
After little research in ffmpeg sources I make the next code for raw AAC
decoding.
Input data:
sample rate = 8000, single channel, profile id = 1.
Decoding example (all checks are skipped):
AVCodec* codec = avcodec_find_decoder(CODEC_ID_AAC); //successfully
AVCodecContext *c = avcodec_alloc_context(); //successfully
unsigned char extradata[] = {0x15, 0x88}; //main feature!!!
avcodec_open(c, codec); //successfully!!!
You may now use avcodec_decode_audio2 for decoding AAC raw bitstream.
It would be interesting to see any comment about this code.
Anatoliy.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user