[FFmpeg-devel] [PATCH] RoQ encoder

Diego Biurrun diego
Sat May 5 22:46:55 CEST 2007


On Sat, May 05, 2007 at 06:47:54PM +0200, Michael Niedermayer wrote:
> 
> On Sat, May 05, 2007 at 10:57:50AM +0200, Diego Biurrun wrote:
> > > +    for(i=0;i<MAX_DPCM;i++)
> > > +    {
> > > +        if(diff < 0)
> > > +            diff = -diff;
> > > +        if(diff2 < 0)
> > > +            diff2 = -diff2;
> > > +    }
> > 
> > Please put a space between for/if and (, makes things more readable.
> 
> i think this is getting too nitpickish
> i mean yes you can improve
> 
> for(i=0;i<MAX_DPCM;i++)
> 
> for example:
> 
> for(i=0; i<MAX_DPCM; i++)
> 
> is more readable IMHO but iam very afraid this could end in a coding style
> flamewar

No, not another flamewar please.

I wouldn't have mentioned this by itself, but since the patch was in for
another revision anyway...

IMO the most readable variant is

  for ( i = 0;  i < MAX_DPCM;  i++ )

but no, I won't insist in any way ;)

> and scare contrbutors away ...

/* no comment */

> -- 
> Those who are too smart to engage in politics are punished by being
> governed by those who are dumber. -- Plato 

Good one.

Diego




More information about the ffmpeg-devel mailing list