I updated my version of ffmpeg to the last commit, and now I see that the sound decoding function is avcodec_decode_audio3out of date, and when I use the new function avcodec_decode_audio4, in accordance with the changes required in it, I get an error like
[amrnb @ 003a5000] get_buffer() failed.
I can not find the cause of this error. Does anyone have an example of using this new function:
avcodec_decode_audio4((AVCodecContext *avctx, AVFrame *frame,int *got_frame_ptr, AVPacket *avpkt);
source
share