[FFmpeg-devel] [PATCH] Add SHA-2

Kostya kostya.shishkov
Fri Jul 17 06:33:01 CEST 2009


On Fri, Jul 17, 2009 at 05:07:13AM +0200, Michael Niedermayer wrote:
> On Thu, Jul 16, 2009 at 08:28:46AM +0300, Kostya wrote:
> > On Wed, Jul 15, 2009 at 05:20:15PM +0200, Michael Niedermayer wrote:
> > > On Wed, Jul 15, 2009 at 05:53:24PM +0300, Kostya wrote:
> > [...]
> > > >  int av_sha_init(AVSHA* ctx, int bits)
> > > >  {
> > > > +    if (bits & 0x1F)
> > > > +        return -1;
> > > > +    ctx->digest_len = bits >> 5;
> > > > +    switch (ctx->digest_len) {
> > > 
> > > switch(bits)
> > > and te if() becomes useless
> > 
> > ok
> 
> ok

applied
 
> [..]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB



More information about the ffmpeg-devel mailing list