缓冲区错误在AV codec_de code_audio4() [英] Buffer error in avcodec_decode_audio4()
问题描述
我已经升级我的ffmpeg的版本到最新的承诺,现在我可以看到音频解码功能可按 AV codec_de code_audio3
已去precated当我使用新功能 AV codec_de code_audio4
,根据它要求的变化,我得到的误差
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()失败。
我不能够找到是什么原因导致这个错误。任何人有USNG这一新功能的示例例如:
I am not able to find what causes this error. Anyone has a sample example of usng this new function:
AV codec_de code_audio4((AV codecContext * avctx,AVFrame *帧,为int * got_frame_ptr,AVPacket * avpkt);
推荐答案
检查的 decoding_encoding.c 例如,从ffmpeg的来源。它使用功能 AV codec_de code_audio4
。
Check decoding_encoding.c example from ffmpeg source. It uses function avcodec_decode_audio4
.
这篇关于缓冲区错误在AV codec_de code_audio4()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!