E/MediaCodec: configure failed w

2019-05-29  本文已影响0人  勤息嘻嘻嘻

12-28 12:19:53.236 1165-1284/? E/BufferQueueProducer: [SurfaceView] connect(P): already connected (cur=3 req=3)
12-28 12:19:53.236 14164-14319/com.idcvideo.haokaihuidraw E/MediaCodec: native_window_api_connect returned an error: Invalid argument (-22)
12-28 12:19:53.236 14164-14164/com.idcvideo.haokaihuidraw E/MediaCodec: configure failed with err 0xffffffea, resetting...

记一次解码器异常

--------- beginning of crash

12-28 12:19:53.818 14164-14164/com.idcvideo.haokaihuidraw E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.idcvideo.haokaihuidraw, PID: 14164
android.media.MediaCodecCodecException: Error 0xffffffea at android.media.MediaCodec.native_configure(Native Method) at android.media.MediaCodec.configure(MediaCodec.java:577) at com.fvp.sip.MyVideoDecoder.createDecoder(MyVideoDecoder.java:46) at com.idcvideo.view.MeetingActivity3.surfaceCreated(MeetingActivity.java:485)

网上查是参数无效 状态异常 但是所有参数已经核对无异常,后来询问同事 是要在创建前reset 一下 保证状态正常。

https://juejin.im/entry/5aa234f751882555712bf210?tdsourcetag=s_pcqq_aiomsg
这个是相关资料,看来解决问题还是要综合考虑。

上一篇下一篇

猜你喜欢

热点阅读