[SCM] libav/experimental: Rename parameters of put_sbits() to make them consistent with those of put_bits().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:14 UTC 2013


The following commit has been merged in the experimental branch:
commit 5f1836a7de6e21381ad37533737d38c3fb62d3d1
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Mon Nov 30 23:52:28 2009 +0000

    Rename parameters of put_sbits() to make them consistent with those of
    put_bits().
    
    Originally committed as revision 20677 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index d16abfc..5f9811e 100644
--- a/libavcodec/put_bits.h
+++ b/libavcodec/put_bits.h
@@ -256,11 +256,11 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
 }
 #endif
 
-static inline void put_sbits(PutBitContext *pb, int bits, int32_t val)
+static inline void put_sbits(PutBitContext *pb, int n, int32_t value)
 {
-    assert(bits >= 0 && bits <= 31);
+    assert(n >= 0 && n <= 31);
 
-    put_bits(pb, bits, val & ((1<<bits)-1));
+    put_bits(pb, n, value & ((1<<n)-1));
 }
 
 /**

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list