Encode audio to aac with libavcodec
- by ryan
I'm using libavcodec (latest git as of 3/3/10) to encode raw pcm to aac
(libfaac support enabled). I do this by calling avcodec_encode_audio
repeatedly with codec_context-frame_size samples each time. The first four
calls return successfully, but the fifth call never returns. When I use gdb
to break, the stack is corrupt.
If I use audacity to…