mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
AudioTrack will mark 0-size buffers as consumed
This can happen in the first, non-codec-config output buffer from MediaCodec, while decoding MP3 data. This issue was discovered on Nexus 5's running both KitKat Lollippop.
This commit is contained in:
parent
48540c2ba0
commit
52e5b8e848
1 changed files with 1 additions and 0 deletions
|
|
@ -399,6 +399,7 @@ public final class AudioTrack {
|
|||
}
|
||||
|
||||
if (size == 0) {
|
||||
result |= RESULT_BUFFER_CONSUMED;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue