# HG changeset patch # User stefano # Date 1238529473 0 # Node ID fec13de9a1f2faa29686c95362627676bb458de8 # Parent 44de9c13651303329dfbdc79d99383f3eeaa60c0 Add a notice telling that the behavior of skip_put_bits() is undefined if n is 0. diff -r 44de9c136513 -r fec13de9a1f2 bitstream.h --- a/bitstream.h Tue Mar 31 19:39:47 2009 +0000 +++ b/bitstream.h Tue Mar 31 19:57:53 2009 +0000 @@ -337,6 +337,7 @@ /** * Skips the given number of bits. * Must only be used if the actual values in the bitstream do not matter. + * If \p n is 0 the behavior is undefined. */ static inline void skip_put_bits(PutBitContext *s, int n){ #ifdef ALT_BITSTREAM_WRITER