Merge "fix AmrInputStream.read() hang"