mirror of
https://github.com/xiph/opus.git
synced 2025-05-30 07:07:42 +00:00
Fix valgrind unaddressable mem read error
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
This commit is contained in:
parent
be9e747bcc
commit
e40df01625
1 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ opus_int32 silk_NLSF_encode( /* O Returns
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
opus_int i, s, ind1, bestIndex, prob_Q8, bits_q7;
|
opus_int i, s, ind1, bestIndex, prob_Q8, bits_q7;
|
||||||
opus_int32 W_tmp_Q9;
|
opus_int32 W_tmp_Q9, ret;
|
||||||
VARDECL( opus_int32, err_Q26 );
|
VARDECL( opus_int32, err_Q26 );
|
||||||
VARDECL( opus_int32, RD_Q25 );
|
VARDECL( opus_int32, RD_Q25 );
|
||||||
VARDECL( opus_int, tempIndices1 );
|
VARDECL( opus_int, tempIndices1 );
|
||||||
|
@ -131,6 +131,7 @@ opus_int32 silk_NLSF_encode( /* O Returns
|
||||||
/* Decode */
|
/* Decode */
|
||||||
silk_NLSF_decode( pNLSF_Q15, NLSFIndices, psNLSF_CB );
|
silk_NLSF_decode( pNLSF_Q15, NLSFIndices, psNLSF_CB );
|
||||||
|
|
||||||
|
ret = RD_Q25[ 0 ];
|
||||||
RESTORE_STACK;
|
RESTORE_STACK;
|
||||||
return RD_Q25[ 0 ];
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue