Buffer error in avcodec_decode_audio4()

余生颓废 提交于 2019-12-07 04:44:35

问题


I have upgraded my ffmpeg version to the latest commit and Now I can see that the audio decoding funciton avcodec_decode_audio3 has been deprecated and when I use the new function avcodec_decode_audio4, as per the changes required in it, I get the error as

[amrnb @ 003a5000] get_buffer() failed.

I am not able to find what causes this error. Anyone has a sample example of usng this new function:

avcodec_decode_audio4((AVCodecContext *avctx, AVFrame *frame,int *got_frame_ptr, AVPacket *avpkt);


回答1:


Check decoding_encoding.c example from ffmpeg source. It uses function avcodec_decode_audio4.



来源:https://stackoverflow.com/questions/9394918/buffer-error-in-avcodec-decode-audio4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!