Mercurial > libavcodec.hg
comparison put_bits.h @ 10608:dab94852ac8b libavcodec
Rename parameters of put_sbits() to make them consistent with those of
put_bits().
author | stefano |
---|---|
date | Mon, 30 Nov 2009 23:52:28 +0000 |
parents | f2a8cba717b0 |
children | 8a71d3ce52e2 |
comparison
equal
deleted
inserted
replaced
10607:6e672d7eb297 | 10608:dab94852ac8b |
---|---|
254 # endif | 254 # endif |
255 # endif //!ALIGNED_BITSTREAM_WRITER | 255 # endif //!ALIGNED_BITSTREAM_WRITER |
256 } | 256 } |
257 #endif | 257 #endif |
258 | 258 |
259 static inline void put_sbits(PutBitContext *pb, int bits, int32_t val) | 259 static inline void put_sbits(PutBitContext *pb, int n, int32_t value) |
260 { | 260 { |
261 assert(bits >= 0 && bits <= 31); | 261 assert(n >= 0 && n <= 31); |
262 | 262 |
263 put_bits(pb, bits, val & ((1<<bits)-1)); | 263 put_bits(pb, n, value & ((1<<n)-1)); |
264 } | 264 } |
265 | 265 |
266 /** | 266 /** |
267 * Writes exactly 32 bits into a bitstream. | 267 * Writes exactly 32 bits into a bitstream. |
268 */ | 268 */ |