[Flac-dev] Fixed It (was: Error initializing flac stream decoder.)

Reza Naima reza at reza.net
Sun Aug 18 19:32:02 PDT 2002


A bit more info, and my appologies.  After adding a bagillion printf's 
in stream_decoder.c, I have narrowed the error down to this :

decoder->private_->local_lpc_restore_signal was not set, because, I 
managed to leave out the _init() call.  I feel dumb now.  Thanks for all 
the help.

Reza

Reza Naima wrote:
> I changed just the FLAC__EntropyCodingMethod_PartitionedRice struct, but 
> it hasn't changed a thing.  I'm still getting the same behaviour.
> 
> typedef struct {
>         unsigned order;
>         unsigned parameters[1 << 6];
>         unsigned raw_bits[1 << 6];
> } FLAC__EntropyCodingMethod_PartitionedRice;
> 
> 
> Any other thoughts?
> 
> Thanks,r
> Reza
> 
> Josh Coalson wrote:
> 
>> --- Reza Naima <reza at reza.net> wrote:
>>
>>> Thanks for that email.  The one lihe change I made is this :
>>>
>>> from  #define FLAC__MAX_RICE_PARTITION_ORDER (15u)
>>> to #define FLAC__MAX_RICE_PARTITION_ORDER (6u)
>>>
>>> and that seemed to make decoder_new() happy, but it's promptly
>>> crashing ...
>>
>>
>>
>> Don't change the global define... just replace the value
>> FLAC__MAX_RICE_PARTITION_ORDER with 6 in the two places
>> it is used in the FLAC__EntropyCodingMethod_PartitionedRice
>> struct.
>>
>> And remember this new decoder will only decode files up
>> to that partition order (i.e. flac -r 6 or less).  Make
>> sure not to release it as it is not FLAC compliant anymore.
>>
>> Josh
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> HotJobs - Search Thousands of New Jobs
>> http://www.hotjobs.com
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by: OSDN - Tired of that same old
>> cell phone?  Get a new here for FREE!
>> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>> _______________________________________________
>> Flac-dev mailing list
>> Flac-dev at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/flac-dev
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Flac-dev mailing list
> Flac-dev at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flac-dev






More information about the Flac-dev mailing list