Jeff Huang
2006-Apr-01 21:18 UTC
[Flac-dev] debugging the bits_per_sample and channels metadata in FLAC
I encountered what I think is a bug in labFLAC_static release that's driving me nuts. I compile the FLAC libraries in debug mode on ARMV4 (ported) and it works fine I compile the FLAC libraries in release mode on ARMV4 (ported) and no FLAC files play>From what I can see, in metadata_callback, I get different values forchannel and bitsperssample metadata->data.stream_info.bits_per_sample is 16 in debug mode, 1072 in release mode metadata->data.stream_info.channels is 2 in debug mode, 34 in release mode I'm using FLAC CVS, but reproduced this in FLAC 1.1 and FLAC 1.2 I also tried several different .flac files For the port, I don't really touch much of the FLAC code so I don't think the porting caused this bug. If I compile my release code with the debug FLAC static libraries, it works fine. I dug around the FLAC code for a bit and it's pretty hard to me to figure out. Any pointers or thoughts on this? Thanks
Josh Coalson
2006-May-10 16:20 UTC
[Flac-dev] debugging the bits_per_sample and channels metadata in FLAC
sorry for the delay Jeff, I have no idea what could be causing that. how exactly are you building it (gcc cross compile?). if I could reproduce it I'd have a better chance of figuring it out. Josh --- Jeff Huang <huang6@uiuc.edu> wrote:> I encountered what I think is a bug in labFLAC_static release that's > driving me nuts. > > I compile the FLAC libraries in debug mode on ARMV4 (ported) and it > works fine > I compile the FLAC libraries in release mode on ARMV4 (ported) and no > FLAC files play > > >From what I can see, in metadata_callback, I get different values > for > channel and bitsperssample > > metadata->data.stream_info.bits_per_sample is 16 in debug mode, 1072 > in > release mode > metadata->data.stream_info.channels is 2 in debug mode, 34 in release > mode > > I'm using FLAC CVS, but reproduced this in FLAC 1.1 and FLAC 1.2 > I also tried several different .flac files > > For the port, I don't really touch much of the FLAC code so I don't > think the porting caused this bug. > > If I compile my release code with the debug FLAC static libraries, it > works fine. > > I dug around the FLAC code for a bit and it's pretty hard to me to > figure out. > > Any pointers or thoughts on this? > > Thanks__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com