当前位置:网站首页>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
哪位大佬或者大神知道原因的啊?
边栏推荐
- 【每日一题】899. 有序队列
- 2022-08-03: What does the following go code output?A: 2; B: 3; C: 1; D: 0.package main import "fmt" func main() { slice := []i
- 身为程序员的我们如何卷死别人?破局重生。
- 学习笔记 | uiautomation(如何)实现自动化
- Graph-node:创建一个新的subgraph
- The world's first mass production, with the most fixed points!How does this AVP Tier1 lead?
- ES6高级-迭代器与生成器的用法
- 我的祖国
- 智能管理PoE交换机
- win10+cuda11.7+pytorch1.12.0安装
猜你喜欢
随机推荐
Using matlab to solve the linear optimization problem based on matlab dynamic model of learning notes _11 】 【
Unity intercepts 3D images and the implementation of picture-in-picture PIP
20年将投资美国约2000亿美元,三星电子财大气粗的样子真好看
学习笔记 | uiautomation(如何)实现自动化
BGP实验(含MPLS)
The longest substring that cannot have repeating characters in a leetcode/substring
【超详细】手把手教你搭建MongoDB集群搭建
Justin Sun: Web3.0 and the Metaverse will assist mankind to enter the online world more comprehensively
绕任意轴旋转矩阵推导
win10+cuda11.7+pytorch1.12.0 installation
苹果对高通说:我4.45亿美元买下一个新园区,可能计划加快基带芯片自研
手撕Gateway源码,今日撕工作流程、负载均衡源码
第1章:初识数据库与MySQL----MySQL安装
面试必问的HashCode技术内幕
带你造轮子,自定义一个随意拖拽可吸边的悬浮View组件
2022/8/3 Exam Summary
[Miscellaneous] How to install the specified font into the computer and then use the font in the Office software?
MPLS综合实验
Internship: Upload method for writing excel sheet (import)
Jmeter-断言