summaryrefslogtreecommitdiffstats
path: root/libavcodec/bitstream.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-31 19:57:53 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-31 19:57:53 +0000
commitf9f74ab97bccfae80f146390f5c50fc385a3f3db (patch)
treea6d4116044022131cc0ce3164a68495c3787ee8a /libavcodec/bitstream.h
parentdd9630e40fe0431b042b2acda04adb1acebc4b04 (diff)
downloadffmpeg-streaming-f9f74ab97bccfae80f146390f5c50fc385a3f3db.zip
ffmpeg-streaming-f9f74ab97bccfae80f146390f5c50fc385a3f3db.tar.gz
Add a notice telling that the behavior of skip_put_bits() is undefined
if n is 0. Originally committed as revision 18285 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r--libavcodec/bitstream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h
index 3670285..263fe9a 100644
--- a/libavcodec/bitstream.h
+++ b/libavcodec/bitstream.h
@@ -337,6 +337,7 @@ static inline void skip_put_bytes(PutBitContext *s, int n){
/**
* 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
OpenPOWER on IntegriCloud