[FFmpeg-soc] [soc]: r4113 - amr/amrnbfloatdec.c
Bobby Bingham
uhmmmm at gmail.com
Sun Feb 22 02:52:36 CET 2009
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);
--
Bobby Bingham
Never trust atoms. Or anything made of atoms.
このメールは再利用されたバイトでできている。
More information about the FFmpeg-soc
mailing list