[FFmpeg-cvslog] r23322 - trunk/libavcodec/aaccoder.c

Aurelien Jacobs aurel
Wed May 26 01:29:31 CEST 2010


On Tue, May 25, 2010 at 07:26:26PM -0400, Alex Converse wrote:
> On Tue, May 25, 2010 at 7:12 PM, Aurelien Jacobs <aurel at gnuage.org> wrote:
> > On Tue, May 25, 2010 at 08:35:02PM +0200, alexc wrote:
> >> Author: alexc
> >> Date: Tue May 25 20:35:01 2010
> >> New Revision: 23322
> >>
> >> Log:
> >> aacenc: Split find_max_val() from find_min_book() to eliminate duplicate searches.
> >>
> >> [...]
> >>
> >> @@ -567,9 +572,10 @@ static void search_for_quantizers_anmr(A
> >> ? ? ? ? ? ? ? ? ?maxscale = av_clip_uint8(log2(qmax)*4 + ?6 + SCALE_ONE_POS - SCALE_DIV_512);
> >> ? ? ? ? ? ? ? ? ?minscale = av_clip(minscale - q0, 0, TRELLIS_STATES - 1);
> >> ? ? ? ? ? ? ? ? ?maxscale = av_clip(maxscale - q0, 0, TRELLIS_STATES);
> >> + ? ? ? ? ? ? ? ?float maxval = find_max_val(sce->ics.group_len[w], sce->ics.swb_sizes[g], s->scoefs+start);
> >
> > Mixed declaration and code...
> >
> 
> Fixed.
> 
> Why is this considered bad?

- It generates a warning.
- It breaks build with gcc-2.95 (which is used on one of the fate machine)

Aurel



More information about the ffmpeg-cvslog mailing list