View Single Post
Old 20 April 2008, 09:13 am   #28
slomo
Member
 
Join Date: Mar 2008
Posts: 7
Default

Quote:
Originally Posted by r2d View Post
The plan was mainly to simplify hacking, so people interested in the psymodel can understand the code more easily. As a side effect there may be encoding libraries, but it's not for now I think.
Ok, if there were encoding libraries I would create a gstreamer encoding plugin


On another issue, is there a bugtracker where one can create bug reports? The trac only allows this for people with an account and there seems to be no way to create one...

Well, currently libmpcdec exports some symbols which probably shouldn't be exported:

Cnk
Cnk_len
Cnk_lost
Res_bit
_Huffman_MakeTree
_Huffman_PrintCodes
__Cc
__Dc
crc32
huff_init_lut
streaminfo_encoder_info
streaminfo_gain
streaminfo_read_header_sv7
streaminfo_read_header_sv8


These should probably get a "mpc_" prefix or should not be exported at all. The most critical one here is "crc32", if you use libmpcdec in an application that also uses zlib (which exports crc32 too, with a different signature) you're unable to decode sv8 files because stuff simply segfaults.

It might make sense to simply use a libtool symbol export regexp here:

libmpcdec_la_LDFLAGS = -export-symbols-regex '^mpc_.*$$'
slomo is offline   Reply With Quote