当前位置:网站首页>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
哪位大佬或者大神知道原因的啊?
边栏推荐
- win10+cuda11.7+pytorch1.12.0安装
- 双目IMU标定kalibr
- JS get parameter value of URL hyperlink
- "Miscellaneous" barcode by Excel as a string
- [Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
- MPLS Comprehensive Experiment
- 面试必问的HashCode技术内幕
- 小米--测试开发
- JS获得URL超链接的参数值
- It will invest about 200 billion US dollars in the United States in 20 years, and Samsung Electronics looks so handsome
猜你喜欢

Nanoprobes Mono- Sulfo -NHS-Nanogold的使用和应用

【性能优化】MySQL常用慢查询分析工具

查看CUDA、pytorch等的版本号

ENS域名注册量创历史新高 逆市增长之势?光环之下存在炒作风险

Justin Sun was invited to attend the 36氪 Yuan Universe Summit and delivered a keynote speech

The super perfect layout has shortcut keys and background replacement

超级完美版布局有快捷键,有背景置换

小身材有大作用——光模块寿命分析(二)

vscode插件设置——Golang开发环境配置

JVM垃圾回收总结(未完待续)
随机推荐
Free自由协议系统开发
A simple understanding of TCP, learn how to shake hands, wave hands and various states
The longest substring that cannot have repeating characters in a leetcode/substring
小身材有大作用——光模块寿命分析(二)
电子邮件安全或面临新威胁!
关于mnn模型输出的数据杂乱无章问题
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
卡尔曼滤波器KF
The world's first mass production, with the most fixed points!How does this AVP Tier1 lead?
2022-08-03:以下go语言代码输出什么?A:2;B:3;C:1;D:0。 package main import “fmt“ func main() { slice := []i
现货白银需要注意八大事项
北京电竞元宇宙论坛活动顺利召开
Graph-node:创建一个新的subgraph
Prometheus监控Harbor(二进制版)
智能座舱的「交互设计」大战
学习笔记 | uiautomation(如何)实现自动化
免费的公共WiFi不要乱连,遭中间人攻击了吧?
JVM垃圾回收总结(未完待续)
V8中的快慢数组(附源码、图文更易理解)
详谈RDMA技术原理和三种实现方式