Fix whitespace errors

This commit is contained in:
Jean-Marc Valin 2023-05-24 01:59:01 -04:00
parent 9ec1683f32
commit 8dc345fe59
No known key found for this signature in database
GPG key ID: 531A52533318F00A
4 changed files with 3 additions and 7 deletions

View file

@ -168,7 +168,7 @@ AC_ARG_ENABLE([neural-fec],
AS_IF([test "$enable_neural_fec" = "yes"],[ AS_IF([test "$enable_neural_fec" = "yes"],[
AC_DEFINE([ENABLE_NEURAL_FEC], [1], [Neural FEC]) AC_DEFINE([ENABLE_NEURAL_FEC], [1], [Neural FEC])
]) ])
AC_ARG_ENABLE([neural-plc], AC_ARG_ENABLE([neural-plc],
[AS_HELP_STRING([--enable-neural-plc], [Use neural PLC for SILK])],, [AS_HELP_STRING([--enable-neural-plc], [Use neural PLC for SILK])],,

View file

@ -126,7 +126,6 @@ void dred_decode_state(ec_enc *dec, float *x) {
{ {
x[k] = iy[k] * norm; x[k] = iy[k] * norm;
} }
} }
void dred_decode_latents(ec_dec *dec, float *x, const opus_uint16 *scale, const opus_uint16 *r, const opus_uint16 *p0) { void dred_decode_latents(ec_dec *dec, float *x, const opus_uint16 *scale, const opus_uint16 *r, const opus_uint16 *p0) {
@ -155,7 +154,7 @@ int main()
opus_int16 p0[LATENT_DIM]; opus_int16 p0[LATENT_DIM];
unsigned char *ptr; unsigned char *ptr;
int k; int k;
for (k=0;k<LATENT_DIM;k++) { for (k=0;k<LATENT_DIM;k++) {
scale[k] = 256; scale[k] = 256;
dzone[k] = 0; dzone[k] = 0;
@ -192,7 +191,7 @@ int main()
ec_dec_init(&dec,ec_get_buffer(&enc),bytes); ec_dec_init(&dec,ec_get_buffer(&enc),bytes);
for (iter=0;iter<1;iter++) { for (iter=0;iter<1;iter++) {
float x[PVQ_DIM]; float x[PVQ_DIM];
dred_decode_state(&dec, x); dred_decode_state(&dec, x);
} }
for (iter=0;iter<1;iter++) { for (iter=0;iter<1;iter++) {
float x[LATENT_DIM]; float x[LATENT_DIM];

View file

@ -79,5 +79,3 @@ int dred_ec_decode(OpusDRED *dec, const opus_uint8 *bytes, int num_bytes, int mi
dec->nb_latents = i/2; dec->nb_latents = i/2;
return i/2; return i/2;
} }

View file

@ -87,7 +87,6 @@ opus_int32 skip_extension(const unsigned char **data, opus_int32 len, opus_int32
} else { } else {
return -1; return -1;
} }
return len; return len;
} }
} }