getting fatal exception when trying to play decoded audio using audioTrack

送分小仙女□ 提交于 2019-12-25 03:16:39

问题


I'm using MediaCodec for video decoding and playing it on surface texture. It all works fine, but when I am decoding audio, it's getting decoded successfully, but when I am trying to play it using AudioTrack I am getting following error:

com.**** I/OMXClient: Using client-side OMX mux.

com.**** I/OMXClient: Using client-side OMX mux.

com.**** E/ACodec: [OMX.Intel.VideoDecoder.AVC] storeMetaDataInBuffers failed w/ err -2147483648

com.**** A/libc: Fatal signal 11 (SIGSEGV) at 0x0029004c (code=1), thread 23469 (Audio Thread)

I am getting the error at this line:

audioTrack.write(byteArr, 0, byteArr.length); 

Thanks in advance

@isabsent

来源:https://stackoverflow.com/questions/49874902/getting-fatal-exception-when-trying-to-play-decoded-audio-using-audiotrack

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