[FFmpeg-soc] [soc]: r4113 - amr/amrnbfloatdec.c
Kenan Gillet
kenan.gillet at gmail.com
Sun Feb 22 03:17:55 CET 2009
On Feb 21, 2009, at 5:52 PM, Bobby Bingham wrote:
> On Sun, 22 Feb 2009 02:24:44 +0100 (CET)
> kmalaussene <subversion at mplayerhq.hu> wrote:
>
>> Author: kmalaussene
>> Date: Sun Feb 22 02:24:43 2009
>> New Revision: 4113
>>
>> Log:
>> Clean up evaluation of search_range_min and search_range_max ,
>> by using FFMIN.
>>
>> Modified:
>> amr/amrnbfloatdec.c
>>
>> Modified: amr/amrnbfloatdec.c
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- amr/amrnbfloatdec.c Sun Feb 22 02:11:28 2009 (r4112)
>> +++ amr/amrnbfloatdec.c Sun Feb 22 02:24:43 2009 (r4113)
>> @@ -378,12 +378,9 @@ static void decode_pitch_lag(int *lag_in
>> const int subframe, const enum Mode mode)
>> {
>> // find the search range
>> - int search_range_min = FFMAX(prev_lag_int - 5, mode ==
>> MODE_122 ? PITCH_LAG_MIN_MODE_122 : PITCH_LAG_MIN);
>> + int search_range_min = FFMIN(FFMAX(prev_lag_int - 5, mode ==
>> MODE_122 ? PITCH_LAG_MIN_MODE_122 : PITCH_LAG_MIN),
>> + PITCH_LAG_MAX - 9);
>
> av_clip(prev_lag_int - 5, mode == MODE_122 ?
> PITCH_LAG_MIN_MODE_122 : PITCH_LAG_MIN, PITCH_LAG_MAX - 9);
>
thanks, applied similar after some more cleanup:)
Kenan
More information about the FFmpeg-soc
mailing list