Skip to content

Commit

Permalink
Fix stats indexing for state
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Sep 27, 2023
1 parent 9a7bb76 commit 25c65a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion silk/dred_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int dred_ec_decode(OpusDRED *dec, const opus_uint8 *bytes, int num_bytes, int mi
/*printf("%d %d %d\n", dred_offset, q0, dQ);*/

//dred_decode_state(&ec, dec->state);
state_qoffset = q0*(DRED_LATENT_DIM+DRED_STATE_DIM) + DRED_STATE_DIM;
state_qoffset = q0*(DRED_LATENT_DIM+DRED_STATE_DIM) + DRED_LATENT_DIM;
dred_decode_latents(
&ec,
dec->state,
Expand Down
2 changes: 1 addition & 1 deletion silk/dred_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ int dred_encode_silk_frame(const DREDEnc *enc, unsigned char *buf, int max_chunk
ec_enc_uint(&ec_encoder, enc->dred_offset, 32);
ec_enc_uint(&ec_encoder, q0, 16);
ec_enc_uint(&ec_encoder, dQ, 8);
state_qoffset = q0*(DRED_LATENT_DIM+DRED_STATE_DIM) + DRED_STATE_DIM;
state_qoffset = q0*(DRED_LATENT_DIM+DRED_STATE_DIM) + DRED_LATENT_DIM;
dred_encode_latents(
&ec_encoder,
enc->initial_state,
Expand Down

0 comments on commit 25c65a0

Please sign in to comment.