mirror of
https://github.com/xiph/opus.git
synced 2025-06-02 16:47:42 +00:00
Moving FEC decision to the Opus encoder level (from SILK level)
This commit is contained in:
parent
099fc05ebf
commit
2b011b64d8
6 changed files with 57 additions and 27 deletions
|
@ -237,7 +237,7 @@ opus_int silk_Encode( /* O Returns error co
|
|||
for( n = 0; n < encControl->nChannelsInternal; n++ ) {
|
||||
/* Force the side channel to the same rate as the mid */
|
||||
opus_int force_fs_kHz = (n==1) ? psEnc->state_Fxx[0].sCmn.fs_kHz : 0;
|
||||
if( ( ret = silk_control_encoder( &psEnc->state_Fxx[ n ], encControl, TargetRate_bps, psEnc->allowBandwidthSwitch, n, force_fs_kHz ) ) != 0 ) {
|
||||
if( ( ret = silk_control_encoder( &psEnc->state_Fxx[ n ], encControl, psEnc->allowBandwidthSwitch, n, force_fs_kHz ) ) != 0 ) {
|
||||
silk_assert( 0 );
|
||||
RESTORE_STACK;
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue