Skip to content

Commit

Permalink
Replace BitArray.skipBytes() with BitArray.skipBits()
Browse files Browse the repository at this point in the history
Based on the spec, ETSI TS 102 366 V1.4.1 Annex F, 6 bits should have skipped instead of 6 bytes.

This correction was pointed out in Issue: androidx#474.

PiperOrigin-RevId: 545658365
  • Loading branch information
rohitjoins committed Jul 13, 2023
1 parent 7a368b9 commit 07d4e59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static Format parseEAc3AnnexFFormat(
int numDepSub = dataBitArray.readBits(4); // num_dep_sub
dataBitArray.skipBits(1); // numDepSub > 0 ? LFE2 : reserved
if (numDepSub > 0) {
dataBitArray.skipBytes(6); // other channel configurations
dataBitArray.skipBits(6); // other channel configurations
// Read Lrs/Rrs pair
// TODO: Read other channel configuration
if (dataBitArray.readBits(1) != 0) {
Expand Down

0 comments on commit 07d4e59

Please sign in to comment.