[FFmpeg-devel] [PATCH] QCELP decoder

Kenan Gillet kenan.gillet
Thu Oct 30 23:26:05 CET 2008


On Oct 30, 2008, at 3:11 PM, Michael Niedermayer wrote:

> On Thu, Oct 30, 2008 at 02:50:45PM -0700, Kenan Gillet wrote:
>> On Thu, Oct 30, 2008 at 2:31 PM, Diego Biurrun <diego at biurrun.de>  
>> wrote:
>>> On Thu, Oct 30, 2008 at 10:07:45PM +0100, Vitor Sessak wrote:
>>>> Michael Niedermayer wrote:
>>>>>> --- libavcodec/celp_filters.h      (revision 15692)
>>>>>> +++ libavcodec/celp_filters.h      (working copy)
>>>>>> @@ -69,4 +69,28 @@
>>>>>>
>>>>>> +/**
>>>>>> + * LP synthesis filter.
>>>>>> + * @param out [out] pointer to output buffer
>>>>>> + *        - the array out[-filter_length, -1] must
>>>>>> + *        contain the previous result of this filter
>>>>>> + * @param filter_coeffs filter coefficients.
>>>>>> + * @param in input signal
>>>>>> + * @param buffer_length amount of data to process
>>>>>> + * @param filter_length filter length (10 for 10th order LP  
>>>>>> filter)
>>>>>> + *
>>>>>> + * @return 1 if overflow occurred, 0 - otherwise
>>>>>
>>>>> hmm void == 1 || 0 ?
>>>>
>>>> Oops, commited by error, should I revert?
>>>
>>> I'd say commit the fix when it appears, there is no point in  
>>> reverting
>>> (currently) unused code.
>>
>> is that fix ok?
>
>> Index: libavcodec/celp_filters.h
>> ===================================================================
>> --- libavcodec/celp_filters.h	(revision 15754)
>> +++ libavcodec/celp_filters.h	(working copy)
>> @@ -79,8 +79,6 @@
>>  * @param buffer_length amount of data to process
>>  * @param filter_length filter length (10 for 10th order LP filter)
>>  *
>> - * @return 1 if overflow occurred, 0 - otherwise
>> - *
>
> ok but
>
>>  * @note Output buffer must contain 10 samples of past
>>  *       speech data before pointer.
>>  *
>
> 10 samples ? isnt it filter_length samples?

yes, patch attached that fix doxy for ff_celp_lp_synthesis_filter and  
ff_celp_lp_synthesis_filterf

Kenan

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: celp_filters-note-cleanup.patch.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081030/185d0587/attachment.txt>
-------------- next part --------------




More information about the ffmpeg-devel mailing list