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

Commit 4246ec06 authored by Antoine Chavasse's avatar Antoine Chavasse
Browse files

samsung: explicitely request a fixed bitrate, otherwise it is ignored.

Change-Id: I5e24dcdea01ab081629ce455efb37f2fd151779c
parent d06f6427
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1491,7 +1491,13 @@ status_t OMXCodec::setupBitRate(int32_t bitRate) {
            &bitrateType, sizeof(bitrateType));
    CHECK_EQ(err, (status_t)OK);

#ifdef SAMSUNG_CODEC_SUPPORT
    // Samsung codecs ignore the bitrate if we don't explicitly
    // tell them that we want a constant bitrate.
    bitrateType.eControlRate = OMX_Video_ControlRateConstant;
#else
    bitrateType.eControlRate = OMX_Video_ControlRateVariable;
#endif
    bitrateType.nTargetBitrate = bitRate;

    err = mOMX->setParameter(