当前位置:网站首页>outputBufferIndex = mDecode.dequeueOutputBuffer(bufferInfo, 0) 一直返回为-1
outputBufferIndex = mDecode.dequeueOutputBuffer(bufferInfo, 0) 一直返回为-1
2022-08-04 00:11:00 【程序猫 猫小白】
遇到问题
使用MediaCodec解码的时候,使用
outputBufferIndex = mDecode.dequeueOutputBuffer(bufferInfo, 0) ;
outputBufferIndex一直返回为-1
接着会出现以下Log:
2022-08-03 19:09:22.373 32278-322/com.byd.rtpclientdemo E/BLS_PreviewThread: java.lang.IllegalStateException
2022-08-03 19:09:22.374 32278-322/com.byd.rtpclientdemo W/System.err: java.lang.IllegalStateException
2022-08-03 19:09:22.375 32278-322/com.byd.rtpclientdemo W/System.err: at android.media.MediaCodec.native_dequeueInputBuffer(Native Method)
2022-08-03 19:09:22.375 32278-322/com.byd.rtpclientdemo W/System.err: at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2938)
上一次操作的时候可以正常解码,最后的Log是:
32278-32381/com.byd.rtpclientdemo I/MediaCodec: setCodecState state(0), called in 6
然后再进行操作就是一直返回-1;折腾好多次之后,重新安装demo,清数据这类的操作多次,又会解码正常,下一次又会出现一直返回为-1
哪位大佬或者大神知道原因的啊?
边栏推荐
猜你喜欢

"Miscellaneous" barcode by Excel as a string

智能座舱的「交互设计」大战

The problem of disorganized data output by mnn model

JVM垃圾回收总结(未完待续)

LeetCode 19:删除链表的倒数第 N 个结点

关于mnn模型输出的数据杂乱无章问题

The super perfect layout has shortcut keys and background replacement

分布式事务框架 seata

RSS订阅微信公众号初探-feed43

Nanoprobes Alexa Fluor 488 FluoroNanogold 偶联物
随机推荐
jav一键生成数据库文档
查看CUDA、pytorch等的版本号
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
ros mavros stereo读取rosbag并记录IMU和图片到文件夹
2021年数据泄露成本报告解读
免费的公共WiFi不要乱连,遭中间人攻击了吧?
因为一次bug的教训,我决定手撕Nacos源码(先撕客户端源码)
智能座舱的「交互设计」大战
curl使用指南
win10+cuda11.7+pytorch1.12.0 installation
POE交换机全方位解读(下)
身为程序员的我们如何卷死别人?破局重生。
Salesforce的中国区业务可能出现新变化,传言可能正在关闭
NLP resources that must be used for projects [Classified Edition]
Justin Sun: Web3.0 and the Metaverse will assist mankind to enter the online world more comprehensively
FinClip, help smart TV more imagination
第1章:初识数据库与MySQL----MySQL安装
Go编译原理系列7(Go源码调试)
伦敦银最新均线分析系统怎么操作?
利用matlab求解线性优化问题【基于matlab的动力学模型学习笔记_11】