[FFmpeg-devel] [PATCH] G.729A (now fixed-point) decoder
Reimar Döffinger
Reimar.Doeffinger
Wed Mar 19 19:10:04 CET 2008
On Wed, Mar 19, 2008 at 11:37:08PM +0600, Vladimir Voroshilov wrote:
> On Wed, Mar 19, 2008 at 10:46 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > > Reference code uses ~((~a)>>b) for negative numbers.
> >
> > argh, right, L_shr(a,b) == a>>b
> > iam silly but you are as well because L_shr(-1,1)!=0
>
> L_shr(-1,1) IS equal to zero and
> L_shr(-3,1) IS equal to -2
> in reference code.
That doesn't make sense, you claimed reference code uses ~((~a)>>b) for
negative numbers, for a == -1 that gives -1 and not 0.
So one of your statements must be wrong I think.
More information about the ffmpeg-devel
mailing list