我的情况是,我尝试使用mediacodec lib转换视频,然后将转换后的文件发送到另一台设备。在我发送到另一台设备之前,该文件可以正常运行。但是当收到文件时,该文件已损坏,但仍然可以播放并显示类似对话框,因为发生意外错误而无法正常播放此文件。
这是一个错误日志:
05-26 10:10:53.522 299-12376/? E/ACodec: [OMX.Intel.aac.decoder] ERROR(0x80001001)
05-26 10:10:53.522 299-12376/? E/ACodec: signalError(omxError 0x80001001, internalError -2147483648)
05-26 10:10:53.522 299-12376/? E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6
05-26 10:10:53.522 299-12375/? E/NuPlayerDecoder: Failed to dequeue input buffer for OMX.Intel.aac.decoder (err=-38)
05-26 10:10:53.523 299-12365/? E/NuPlayer: received error(0xffffffda) from audio decoder, flushing(0), now shutting down
05-26 10:10:53.523 2608-14507/? E/MediaPlayer: error (1, -38)
05-26 10:10:53.523 2608-2608/? E/MediaPlayer: Error (1,-38)
05-26 10:10:53.523 2608-2608/? D/VideoView: Error: 1,-38
05-26 10:10:53.523 2608-2608/? D/MoviePlayerForL: Gallery MoviePlayer Receive error
05-26 10:10:53.523 299-12375/? E/NuPlayerDecoder: failed to flush OMX.Intel.aac.decoder (err=-38)
05-26 10:10:53.523 299-12365/? E/NuPlayer: received error(0xffffffda) from audio decoder, flushing(2), now shutting down
05-26 10:10:53.526 2608-29677/? E/MediaPlayer: error (1, -38)
05-26 10:10:53.527 299-12376/? E/SimpleSoftOMXComponent: 1
05-26 10:10:53.527 299-12376/? E/SimpleSoftOMXComponent: 2
05-26 10:10:53.527 299-12376/? E/SimpleSoftOMXComponent: 3
现在我的问题是,是什么原因导致该文件被破坏以及如何修复它?