Mercurial > libavcodec.hg
diff bitstream.h @ 9320:fec13de9a1f2 libavcodec
Add a notice telling that the behavior of skip_put_bits() is undefined
if n is 0.
| author | stefano |
|---|---|
| date | Tue, 31 Mar 2009 19:57:53 +0000 |
| parents | 66f1dba43a01 |
| children | 0d7c2dee6b4d |
line wrap: on
line diff
--- 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
