解码某些mp4文件时,Android MediaExtractor崩溃。 Libc致命信号11

时间:2015-10-23 06:42:46

标签: android android-video-player android-textureview

我正在使用Google Grafika示例在TextureView上显示视频。 "双重解码"更具体 。代码大多数时间都在工作,但对于某些mp4文件,它只会崩溃:

libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7998

相同的代码适用于webM文件和大多数mp4文件。我希望它失败的地方是:

extractor = new MediaExtractor();
extractor.setDataSource(sourceFile);
<{3>} [L:113]

中的

任何提示如何走动或可能是什么问题?

1 个答案:

答案 0 :(得分:0)

这是与OpenGL-ES Apps相关的错误

尝试将此添加到您的清单中:

  <uses-feature android:glEsVersion="0x00020000" android:required="true" />
  • 打开AndroidManifest.xml,添加 android:allowClearUserData =&#34; true&#34; 标签 到应用程序节点。

    <application android:allowClearUserData="true"
    ....
    >
    

    这可能会对您有所帮助