Commit 6f2bfb73 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry Committed by Jean-Marc Valin
Browse files

Refactor SILK's use of ec_enc_patch_initial_bits().

The return code has been eliminated in favor of using the existing
 error flag in the ec_enc struct.
parent 485d64df
......@@ -226,8 +226,7 @@ TOC(ENCODE_PULSES)
flags = SKP_LSHIFT( flags, 1 );
}
flags |= psEnc->sCmn.LBRR_flag;
ret = ec_enc_patch_initial_bits( psRangeEnc, flags, psEnc->sCmn.nFramesPerPacket + 1 );
SKP_assert( ret == 0 );
ec_enc_patch_initial_bits( psRangeEnc, flags, psEnc->sCmn.nFramesPerPacket + 1 );
/* Payload size */
nBits = ec_tell( psRangeEnc );
......
......@@ -227,8 +227,7 @@ TOC(ENCODE_PULSES)
flags = SKP_LSHIFT( flags, 1 );
}
flags |= psEnc->sCmn.LBRR_flag;
ret = ec_enc_patch_initial_bits( psRangeEnc, flags, psEnc->sCmn.nFramesPerPacket + 1 );
SKP_assert( ret == 0 );
ec_enc_patch_initial_bits( psRangeEnc, flags, psEnc->sCmn.nFramesPerPacket + 1 );
/* Payload size */
nBits = ec_tell( psRangeEnc );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment