mirror of
https://github.com/drowe67/codec2
synced 2026-08-14 19:31:34 -04:00
Fix clang-format errors from last commit.
This commit is contained in:
parent
203b3f7c3d
commit
7098a9bf67
1 changed files with 6 additions and 1 deletions
|
|
@ -123,7 +123,12 @@ void freedv_800xa_open(struct freedv *f) {
|
|||
|
||||
f->bits_per_codec_frame = codec2_bits_per_frame(f->codec2);
|
||||
f->bits_per_modem_frame = f->n_codec_frames * f->bits_per_codec_frame;
|
||||
int n_packed_bytes = ceil((f->bits_per_modem_frame + 7.0) / 8.0) + 1; /* ~3.5 bits per frame, which needs to be rounded up to 4. */
|
||||
|
||||
/*
|
||||
* ~3.5 bits per frame, which needs to be rounded up to 4 because computers
|
||||
* can't handle half bytes.
|
||||
*/
|
||||
int n_packed_bytes = ceil((f->bits_per_modem_frame + 7.0) / 8.0) + 1;
|
||||
if (n_packed_bytes < 8) n_packed_bytes = 8;
|
||||
f->tx_payload_bits = MALLOC(n_packed_bytes);
|
||||
assert(f->tx_payload_bits != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue