Commit 52e5b8e8 by Alex Puterbaugh

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.
parent 48540c2b
......@@ -399,6 +399,7 @@ public final class AudioTrack {
}
if (size == 0) {
result |= RESULT_BUFFER_CONSUMED;
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment