[Ffmpeg-cvslog] r5516 - trunk/libavcodec/flacenc.c

Michael Niedermayer michaelni
Sun Jun 25 10:19:27 CEST 2006


Hi

On Sat, Jun 24, 2006 at 08:39:06PM -0400, Justin Ruggles wrote:
[...]
> > @@ -328,34 +316,25 @@
> >  static void
> >  put_sbits(PutBitContext *pb, int bits, int32_t val)
> >  {
> > -    uint32_t uval;
> > -
> >      assert(bits >= 0 && bits <= 31);
> > -    uval = (val < 0) ? (1UL << bits) + val : val;
> > -    put_bits(pb, bits, uval);
> > +
> > +    put_bits(pb, bits, val & ((1<<bits)-1));
> >  }
> 
> Would this be useful to have in bitstream.h?  It already has a
> get_sbits() but no put_sbits().

maybe


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-cvslog mailing list