EVS: Fix bug in decoding SID frame CNG type

In 3GPP 26.449 Codec for Enhanced Voice Services (EVS); Comfort Noise Generation
(CNG) aspects, Computational details and bit allocation:
For the EVS primary modes, the SID payload consists of 48 bits. The first bit of
the payload determines the CNG scheme, where 0 stands for the LP-CNG and 1 for
the FD-CNG.
This commit is contained in:
Nan Xiao 2021-10-20 09:32:13 +08:00
parent 01b0d9e077
commit 0818981ccb
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ dissect_evs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
/* CNG type flag 1 bit */
proto_tree_add_bits_ret_val(vd_tree, hf_evs_sid_cng, tvb, bit_offset, 1, &value, ENC_BIG_ENDIAN);
bit_offset++;
if (value == 0) {
if (value == 1) {
/* FD-CNG SID frame */
/* Bandwidth indicator 2 bits */
proto_tree_add_bits_item(vd_tree, hf_evs_bw, tvb, bit_offset, 2, ENC_BIG_ENDIAN);