mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -399,6 +399,7 @@ public final class AudioTrack {
|
||||
}
|
||||
|
||||
if (size == 0) {
|
||||
result |= RESULT_BUFFER_CONSUMED;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user