mirror of
https://github.com/xiph/opus.git
synced 2025-06-07 16:00:56 +00:00
Avoids having the Opus-level "arch" be set to 0 on encoder/decoder reset
This commit is contained in:
parent
9a08ae0d3d
commit
fa73e75f70
2 changed files with 2 additions and 2 deletions
|
@ -59,6 +59,7 @@ struct OpusDecoder {
|
||||||
opus_int32 Fs; /** Sampling rate (at the API level) */
|
opus_int32 Fs; /** Sampling rate (at the API level) */
|
||||||
silk_DecControlStruct DecControl;
|
silk_DecControlStruct DecControl;
|
||||||
int decode_gain;
|
int decode_gain;
|
||||||
|
int arch;
|
||||||
|
|
||||||
/* Everything beyond this point gets cleared on a reset */
|
/* Everything beyond this point gets cleared on a reset */
|
||||||
#define OPUS_DECODER_RESET_START stream_channels
|
#define OPUS_DECODER_RESET_START stream_channels
|
||||||
|
@ -75,7 +76,6 @@ struct OpusDecoder {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
opus_uint32 rangeFinal;
|
opus_uint32 rangeFinal;
|
||||||
int arch;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@ struct OpusEncoder {
|
||||||
int lsb_depth;
|
int lsb_depth;
|
||||||
int encoder_buffer;
|
int encoder_buffer;
|
||||||
int lfe;
|
int lfe;
|
||||||
|
int arch;
|
||||||
|
|
||||||
#define OPUS_ENCODER_RESET_START stream_channels
|
#define OPUS_ENCODER_RESET_START stream_channels
|
||||||
int stream_channels;
|
int stream_channels;
|
||||||
|
@ -105,7 +106,6 @@ struct OpusEncoder {
|
||||||
int analysis_offset;
|
int analysis_offset;
|
||||||
#endif
|
#endif
|
||||||
opus_uint32 rangeFinal;
|
opus_uint32 rangeFinal;
|
||||||
int arch;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Transition tables for the voice and music. First column is the
|
/* Transition tables for the voice and music. First column is the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue