[FFmpeg-devel] [PATCH] Rename put_sbit() params

Michael Niedermayer michaelni
Sun Nov 29 13:20:40 CET 2009


On Sun, Nov 29, 2009 at 10:51:36AM +0100, Stefano Sabatini wrote:
> On date Saturday 2009-11-28 12:05:37 +0100, Michael Niedermayer encoded:
> > On Sat, Nov 28, 2009 at 11:43:34AM +0100, Stefano Sabatini wrote:
> > > On date Saturday 2009-04-11 12:05:32 +0200, Stefano Sabatini encoded:
> > > > Hi,
> > > > 
> > > > this should make more apparent the similarities between put_bits() and
> > > > put_sbits().
> > > > 
> > > > Decrease the user sense of wonder when reading the declaration.
> > > 
> > > Patch updated.
> > > -- 
> > > FFmpeg = Foolish and Fundamentalist Magic Philosofic Extreme Glue
> > 
> > >  put_bits.h |    6 +++---
> > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > b0bf9d0b47ef3c8b818a2fb49b62ab5caa2ab830  bs-rename-put-sbits-params.patch
> > > Index: ffmpeg/libavcodec/put_bits.h
> > > ===================================================================
> > > --- ffmpeg.orig/libavcodec/put_bits.h	2009-11-28 11:40:12.000000000 +0100
> > > +++ ffmpeg/libavcodec/put_bits.h	2009-11-28 11:40:52.000000000 +0100
> > > @@ -257,11 +257,11 @@
> > >  }
> > >  #endif
> > >  
> > > -static inline void put_sbits(PutBitContext *pb, int bits, int32_t val)
> > > +static inline void put_sbits(PutBitContext *s, int n, int32_t value)
> > 
> > pb is better than s
> 
> I agree, but then all the other functions use 's' for the putbit
> context, would be to change them globally be an option? (I suppose
> that is overkill).

i also think its overkill, thats no reason to change it to the worse though

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

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091129/7f33e2e9/attachment.pgp>



More information about the ffmpeg-devel mailing list