Include webrtc patches into this repository
This repository is mostly a placeholder for the versioned artifacts, since it's hard to publish source based on the size/organization of webrtc. But we can publish patch files here. // FREEBIE
This commit is contained in:
parent
713dce4282
commit
c8bbcf8539
31
patches/opus.patch
Normal file
31
patches/opus.patch
Normal file
@ -0,0 +1,31 @@
|
||||
--- src/third_party/opus/src/src/opus_encoder.c
|
||||
+++ src/third_party/opus/src/src/opus_encoder.c
|
||||
@@ -206,7 +206,7 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat
|
||||
st->silk_mode.complexity = 9;
|
||||
st->silk_mode.useInBandFEC = 0;
|
||||
st->silk_mode.useDTX = 0;
|
||||
- st->silk_mode.useCBR = 0;
|
||||
+ st->silk_mode.useCBR = 1;
|
||||
st->silk_mode.reducedDependency = 0;
|
||||
|
||||
/* Create CELT encoder */
|
||||
@@ -217,7 +217,7 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat
|
||||
celt_encoder_ctl(celt_enc, CELT_SET_SIGNALLING(0));
|
||||
celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(st->silk_mode.complexity));
|
||||
|
||||
- st->use_vbr = 1;
|
||||
+ st->use_vbr = 0;
|
||||
/* Makes constrained VBR the default (safer for real-time use) */
|
||||
st->vbr_constraint = 1;
|
||||
st->user_bitrate_bps = OPUS_AUTO;
|
||||
@@ -2293,8 +2293,8 @@ int opus_encoder_ctl(OpusEncoder *st, int request, ...)
|
||||
{
|
||||
goto bad_arg;
|
||||
}
|
||||
- st->use_vbr = value;
|
||||
- st->silk_mode.useCBR = 1-value;
|
||||
+ st->use_vbr = 0;
|
||||
+ st->silk_mode.useCBR = 1;
|
||||
}
|
||||
break;
|
||||
case OPUS_GET_VBR_REQUEST:
|
||||
Loading…
Reference in New Issue
Block a user