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

Commit b91fd42e authored by Aniket Kumar Lata's avatar Aniket Kumar Lata Committed by Wonsik Kim
Browse files

CCodec: Add bitrate as a standard parameter for decoders

Send bitrate to C2 decoder components as a standard parameter
before start.

Bug: 179476013
Test: Manual
Change-Id: I12c5a9926e70fe723a926608f0c759c80d18c486
parent e445740e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -359,7 +359,10 @@ void CCodecConfig::initializeStandardParams() {
        .limitTo(D::OUTPUT & D::READ));

    add(ConfigMapper(KEY_BIT_RATE, C2_PARAMKEY_BITRATE, "value")
        .limitTo(D::ENCODER & D::OUTPUT));
        .limitTo(D::ENCODER & D::CODED));
    // Some audio decoders require bitrate information to be set
    add(ConfigMapper(KEY_BIT_RATE, C2_PARAMKEY_BITRATE, "value")
        .limitTo(D::AUDIO & D::DECODER & D::CODED));
    // we also need to put the bitrate in the max bitrate field
    add(ConfigMapper(KEY_MAX_BIT_RATE, C2_PARAMKEY_BITRATE, "value")
        .limitTo(D::ENCODER & D::READ & D::OUTPUT));