Skip to content
Snippets Groups Projects
Commit e0a51c8a authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9039357 from 001a09bd to udc-release

Change-Id: I856d47a6b89df1c0d9f7dd2d93259561bae5e145
parents a0458e29 001a09bd
No related branches found
No related tags found
No related merge requests found
......@@ -652,6 +652,12 @@ bool V4L2EncodeComponent::initializeEncoder() {
// Get the requested bitrate mode and bitrate. The C2 framework doesn't offer a parameter to
// configure the peak bitrate, so we use a multiple of the target bitrate.
mBitrateMode = mInterface->getBitrateMode();
if (property_get_bool("persist.vendor.v4l2_codec2.disable_vbr", false)) {
// NOTE: This is a workaround for b/235771157.
ALOGW("VBR is disabled on this device");
mBitrateMode = C2Config::BITRATE_CONST;
}
mBitrate = mInterface->getBitrate();
mEncoder = V4L2Encoder::create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment