原文链接:https://blog.csdn.net/zhang___yong/article/details/82760756 报错代码: final MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); 解决: int formatWidth = mWidth;
mMediaCodec.configure(format, null, null,MediaCodec.CONFIGURE_FLAG_ENCODE);
原因:传入放入宽高中高不是2的倍数,换言之,是个单数。
int formatHeight = mHeight;
if ((formatWidth & 1) == 1) {
formatWidth–;
}
if ((formatHeight & 1) == 1) {
formatHeight–;
}
final MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, formatWidth, formatHeight);
————————————————
版权声明:本文为ImapBox博主「zhang___yong」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zhang___yong/article/details/82760756
$(“#blog_detail_zk_collection”).click(function(){ window.csdn.articleCollection() }) $.get(“https://blog.csdn.net/m0_37039192/article/uvc/101288646”);
‘); (window.slotbydup = window.slotbydup || []).push({ id: “u3501897”, container: s }); })();
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
var cpro_id = “u1893232”;
/*580*90 创建于 2015-01-06*/
var cpro_id = “u1893237”;
阅读和此文章类似的: 全球云计算