search for: sb_encoder_init

Displaying 10 results from an estimated 10 matches for "sb_encoder_init".

2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...*ptr) return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); -> int sb_encoder_ctl(void *state, int request, void *ptr) ... case SPEEX_GET_SAMPLING_RATE: (*(int*)ptr)=st->sampling_rate; break; ... And st->sampling_rate is 2. I debugged some further and it seems: sb_encoder_init calls speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); to get the sampling rate. I think it should be speex_encoder_ctl (otherwise SBEncState * is interpreted as SBDecState *). Best regards, Chris --- >8 ---- List archives: http://www.xiph.org/archives/ Og...
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi, No, it only happens with speex_wb_mode. But like I said, it is because in wideband mode, the function sb_encoder_init is called and this function initializes the sampling rate using speex_*de*coder_ctl instead of speex_*en*coder_ctl In narrowband mode, the sampling rate is just initialized to 8000 st->sampling_rate=8000; BTW, I saw that my email was added to an existing thread instead of creating a new thread....
2004 Aug 06
6
Speex wishlist
Hi, Speex is getting close to beta4, which I'd like to be feature-complete (or as close as possible). That's why I'd like to ask if anyone here has needs for a feature that hasn't been implemented yet. If so, please let me know. For those interested, here's what's going to be in beta4. First, the VBR code has been greatly improved and now works good with wideband too.
2004 Aug 06
0
Speex wishlist
Jean-Marc, I was wondering if you could add a check to ensure that memory is actually allocated during the nb_encoder_init and sb_encoder_init functions. We have been looking at using Speex on a DSP and noticed that if we didn't allocate a large enough heap space memory segment that the DSP would crash. I would recommend something like: if (!st->stack) fprintf(stderr,"ERROR could not allocate memory for stack");...
2004 Aug 06
1
One Minor Bug (Typo) in Speex 1.0
Speex 1.0 - in file sb_celp.c line 218 change speex_decoder_ctl(...) to speex_encoder_ctl(...): void *sb_encoder_init(SpeexMode *m) { . . . --> speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); // Replace <-- speex_encoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); st->sampling_rate*=2; return st; } -- Best regards Robert...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...ctl(state, request, ptr); > -> int sb_encoder_ctl(void *state, int request, void *ptr) > ... > case SPEEX_GET_SAMPLING_RATE: > (*(int*)ptr)=st->sampling_rate; > break; > ... > And st->sampling_rate is 2. > > I debugged some further and it seems: > sb_encoder_init > calls > speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE, &st->sampling_rate); > to get the sampling rate. I think it should be speex_encoder_ctl (otherwise > SBEncState * is > interpreted as SBDecState *). > > Best regards, > Chris > > --- >8 ---...
2018 Jul 02
0
答复: Security question 请秦卓转发如下邮件给speex开发团队
...the speex software, we found that the "speex_alloc" of the code did not check whether the memory was allocated and used it directly. Is there a security risk? Is there a solution for this? For example(Attached code screenshot): speex-1.2rc1: sb_celp.c Line From 242 to 251. (in function sb_encoder_init) -----邮件原件----- 发件人: Jean-Marc Valin [mailto:jmvalin at jmvalin.ca] 发送时间: 2018年3月20日 6:46 收件人: qinzhuo (C) <qinzhuo2 at huawei.com>; speex-dev at xiph.org 抄送: Gaozhendong <gaozhendong at hisilicon.com>; Zhangxiaolong (C) <xl.zhang at hisilicon.com> 主题: Re: [Speex-dev] hello spee...
2004 Aug 06
5
Memory leak in denoiser + a few questions
Hello The st->zeta pointer isn't freed in the speex_preprocess_state_destroy() function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of
2008 Mar 29
0
GCC/ELF Visibility patch
...odebook_unquant -T open_loop_nbest_pitch -T pitch_search_3tap -T pitch_unquant_3tap -T pitch_xcorr -T qmf_decomp -T qmf_synth -T residue_percep_zero16 -T sanitize_values32 -T sb_decode -T sb_decoder_ctl -T sb_decoder_destroy -T sb_decoder_init -T sb_encode -T sb_encoder_ctl -T sb_encoder_destroy -T sb_encoder_init -T scal_quant -T scal_quant32 -T signal_div -T signal_mul T speex_bits_advance T speex_bits_destroy T speex_bits_init @@ -110,7 +28,6 @@ T speex_bits_write_whole_bytes T speex_decode T speex_decode_int -T speex_decode_native T speex_decoder_ctl T speex_decoder_destroy T speex_decoder_init...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...odebook_unquant -T open_loop_nbest_pitch -T pitch_search_3tap -T pitch_unquant_3tap -T pitch_xcorr -T qmf_decomp -T qmf_synth -T residue_percep_zero16 -T sanitize_values32 -T sb_decode -T sb_decoder_ctl -T sb_decoder_destroy -T sb_decoder_init -T sb_encode -T sb_encoder_ctl -T sb_encoder_destroy -T sb_encoder_init -T scal_quant -T scal_quant32 -T signal_div -T signal_mul T speex_bits_advance T speex_bits_destroy T speex_bits_init @@ -110,7 +28,6 @@ T speex_bits_write_whole_bytes T speex_decode T speex_decode_int -T speex_decode_native T speex_decoder_ctl T speex_decoder_destroy T speex_decoder_init...