解码某些mp4文件时,Android MediaExtractor崩溃. Libc致命信号11 [英] Android MediaExtractor crash when decoding some mp4 files. Libc fatal signal 11
问题描述
我正在使用 Google Grafika 示例在TextureView上显示视频.更具体地讲双重解码".代码大多数时候都可以正常工作,但是对于某些mp4文件,它仅提供崩溃提示:
I am using Google Grafika examples to display video on TextureView. "Double decode" to be more specific . Code work most of the time but for some mp4 files it crash giving only :
libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7998
相同的代码适用于webM文件和大多数mp4文件.我希望它失败的地方是:
Same code works for webM files and most mp4 files. Place where I expect it to fail is :
extractor = new MediaExtractor();
extractor.setDataSource(sourceFile);
在 MoviePlayer 中[p :113]
in MoviePlayer [L:113]
任何提示如何走动或可能是什么问题?
Any hint how to walk around or what might be the problem?
推荐答案
这是与OpenGL-ES Apps相关的错误
This is an error related to OpenGL-ES Apps
尝试将其添加到清单中
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
-
打开AndroidManifest.xml,添加 android:allowClearUserData ="true" 标签 到应用程序节点.
Open AndroidManifest.xml, add android:allowClearUserData="true" tag to the application node.
<application android:allowClearUserData="true" .... >
这可能对您有帮助
这篇关于解码某些mp4文件时,Android MediaExtractor崩溃. Libc致命信号11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!