问题
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:
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
来源:https://stackoverflow.com/questions/33296292/android-mediaextractor-crash-when-decoding-some-mp4-files-libc-fatal-signal-11