Displaying 4 results from an estimated 4 matches for "silk_div32_16".
2018 Sep 21
2
Opus 1.2.1 crash on silk/VAD.c:315
...200, in_packet=0x7f267402cf30)
at /root/mediagateway/source/engine/media-objects/transcoder/codecs/opus.h:91
(gdb) frame 0
#0 0x0000000000aaf38a in silk_VAD_GetNoiseLevels (pX=pX at entry=0x7f26740297a0,
psSilk_VAD=psSilk_VAD at entry=0x15897c38) at silk/VAD.c:315
315 min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT( psSilk_VAD->counter, 4 ) + 1 );
(gdb) p *psSilk_VAD
$20 = {AnaState = {0, 0}, AnaState1 = {0, 0}, AnaState2 = {0, 0}, XnrgSubfr = {0, 0, 0, 0}, NrgRatioSmth_Q8 = {
25600, 25600, 25600, 25600}, HPstate = 0, NL = {50, 25, 16, 12}, inv_NL = {42949656, 85899327,...
2018 Sep 27
1
[Re:] Re: Opus 1.2.1 crash on silk/VAD.c:315
...s crash is reproduce on seq number 4294967265 (20ms rtp packet).
This is about 994 days.
"Jean-Marc Valin" <jmvalin at jmvalin.ca> писал(а):Hi Dmitry,
>
>So it's not explicitly in your report, but it looks like the crash is
>due to a divide-by-zero at:
> min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT(
> psSilk_VAD->counter, 4 ) + 1 );
>
>which happens because counter is -16 (which means (-16 >> 4) + 1 == 0).
>Now, this could be caused by an integer wrap-around, but it should only
>happen after encoding around 2 years and 9 months...
2018 Sep 27
0
Opus 1.2.1 crash on silk/VAD.c:315
Hi Dmitry,
So it's not explicitly in your report, but it looks like the crash is
due to a divide-by-zero at:
min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT(
psSilk_VAD->counter, 4 ) + 1 );
which happens because counter is -16 (which means (-16 >> 4) + 1 == 0).
Now, this could be caused by an integer wrap-around, but it should only
happen after encoding around 2 years and 9 months of audio (1 year an...
2019 May 27
0
opus-1.3.1 patch for ARM Cortex-M4F (single precision)
...07:47:31 +0800
+++ opus-1.3.1/src/opus_encoder.c 2019-05-27 17:19:54 +0800
@@ -348,8 +348,8 @@ static void hp_cutoff(const opus_val16 *
opus_int32 Fc_Q19, r_Q28, r_Q22;
(void)arch;
- silk_assert( cutoff_Hz <= silk_int32_MAX / SILK_FIX_CONST( 1.5 * 3.14159 / 1000, 19 ) );
- Fc_Q19 = silk_DIV32_16( silk_SMULBB( SILK_FIX_CONST( 1.5 * 3.14159 / 1000, 19 ), cutoff_Hz ), Fs/1000 );
+ silk_assert( cutoff_Hz <= silk_int32_MAX / SILK_FIX_CONST( 1.5f * PI / 1000, 19 ) );
+ Fc_Q19 = silk_DIV32_16( silk_SMULBB( SILK_FIX_CONST( 1.5f * PI / 1000, 19 ), cutoff_Hz ), Fs/1000 );
silk_assert( Fc_...