mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Add release note and update comment
This commit is contained in:
parent
b254c4625d
commit
1994ba991c
@ -19,6 +19,8 @@
|
|||||||
* Add support for composition-level audio effects.
|
* Add support for composition-level audio effects.
|
||||||
* Track Selection:
|
* Track Selection:
|
||||||
* Extractors:
|
* Extractors:
|
||||||
|
* Fix issue where padding was not skipped when reading odd-sized chunks
|
||||||
|
from WAV files ([#1117](https://github.com/androidx/media/pull/1117)).
|
||||||
* Audio:
|
* Audio:
|
||||||
* Allow renderer recovery by disabling offload if audio track fails to
|
* Allow renderer recovery by disabling offload if audio track fails to
|
||||||
initialize in offload mode.
|
initialize in offload mode.
|
||||||
|
@ -172,8 +172,9 @@ import java.io.IOException;
|
|||||||
while (chunkHeader.id != chunkId) {
|
while (chunkHeader.id != chunkId) {
|
||||||
Log.w(TAG, "Ignoring unknown WAV chunk: " + chunkHeader.id);
|
Log.w(TAG, "Ignoring unknown WAV chunk: " + chunkHeader.id);
|
||||||
long bytesToSkip = ChunkHeader.SIZE_IN_BYTES + chunkHeader.size;
|
long bytesToSkip = ChunkHeader.SIZE_IN_BYTES + chunkHeader.size;
|
||||||
// To align RIFF chunks to certain boundaries the RIFF specification includes a JUNK chunk.
|
// According to the RIFF specification, if a chunk's body size is odd, it's followed by a
|
||||||
// Its contents are to be skipped when reading.
|
// padding byte of value 0. This ensures each chunk occupies an even number of bytes in the
|
||||||
|
// file. The padding byte isn't included in the size field.
|
||||||
if (chunkHeader.size % 2 != 0) {
|
if (chunkHeader.size % 2 != 0) {
|
||||||
bytesToSkip++; // padding present if size is odd, skip it.
|
bytesToSkip++; // padding present if size is odd, skip it.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user