Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e1ec921 authored by Fyodor Kyslov's avatar Fyodor Kyslov
Browse files

APV: Add extra 7 bits read

According to updated spec, we need to verify there is last 7 bits

Bug: 376770121
Test: CodecEncoderTest, CodecDecoderTest
Change-Id: I6c27e8a63802cddbe89ece976d4b447201386eb1
parent 0aee69a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1186,6 +1186,7 @@ void C2SoftApvEnc::createCsdData(const std::unique_ptr<C2Work>& work,
        transfer_characteristics = reader.getBits(8);  // transfer_characteristics
        matrix_coefficients = reader.getBits(8);       // matrix_coefficients
        full_range_flag = reader.getBits(1);           // full_range_flag
        reader.skipBits(7);                            // reserved_zero_7bits
    }

    number_of_configuration_entry = 1;  // The real-time encoding on the device is assumed to be 1.