[Mpg123-devel] Non-initialized pointer passed to DCT functions?
Brought to you by:
sobukus
From: Stephen A C. <schait@MIT.EDU> - 2006-06-30 16:43:11
|
Hello, I'm Steve Chait and I'm doing a project where I'm designing a hardware mp3 decoder in Verilog. I've been using mpg123's mpglib as a reference to help me write my code. One problem I came across was in the III_hybrid function (mpglib/layer3.c, line 1818). A local pointer called block is set equal to gmp->hybrid_block, a global field that never seems to be initialized (a string search for hybrid_block in all of the source files came up empty except for that one assignment in layer3.c:1822). Then, two more pointers (rawout1 and rawout2) are set equal to portions of block and passed as arguments to dct36 and dct12. From the complicated arithmetic done using values in rawout1 and rawout2, it is clear that they get initialized somewhere, and do not just contain zeroes. But where, and with what data? Thanks, Steve |