[vorbis-dev] Possible channel coupling bug in encoder

Erik Olofsson erik at o3games.com
Tue Oct 16 14:50:18 PDT 2001



I'm not sure that this is not my fault, but here it goes: 
I'm trying to encode a 22 kHz Mono stream. I started with the encoder
example and made it take dynamic channels etc. This is how I init it:

vorbis_info_init(&VorbisInfo);
vorbis_encode_init(&VorbisInfo, 1, 22050, -1, 128000, -1);

then I get a crash in:

_vp_quantize_couple(vorbis_look_psy * 0x01e6a6ec, vorbis_info_mapping0 *
0x017c1988, float * * 0x01ea3ce0, float * * 0x00120754, float * *
0x00120758, int * 0x00120760, int 0) line 1021 + 35 bytes
mapping0_forward(vorbis_block * 0x00121a20, void * 0x01e68d3c) line 496 + 41
bytes
vorbis_analysis(vorbis_block * 0x00121a20, ogg_packet * 0x00121b30) line 65
+ 30 bytes

The error stems from:
float *pcmA=pcm[vi->coupling_ang[i]];

where i is 0

vi->coupling_ang[i] is 1

pcm is only one channel so 
pcmA is 0xfdfdfdfd

im not sure if the error is that
info->coupling_steps is 1 but should be 0 for a mono stream

Is it me that is doing something wrong or in this a bug...

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list