Android MediaExtractor crash when decoding some mp

2019-09-05 15:08发布

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

Same code works for webM files and most mp4 files. Place where I expect it to fail is :

extractor = new MediaExtractor();
extractor.setDataSource(sourceFile);

in MoviePlayer [L:113]

Any hint how to walk around or what might be the problem?

1条回答
看我几分像从前
2楼-- · 2019-09-05 15:43

This is an error related to OpenGL-ES Apps

try adding this to your manifest:

  <uses-feature android:glEsVersion="0x00020000" android:required="true" />
  • Open AndroidManifest.xml, add android:allowClearUserData="true" tag to the application node.

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

    This might help you

查看更多
登录 后发表回答