diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-18 17:13:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-18 19:56:37 +0100 |
commit | 3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a (patch) | |
tree | a1fb794f8b408bbe04a35cbfb9762de1762bda72 /libavcodec/put_bits.h | |
parent | 4e17efd852bd3d83d1b6465614fc2d44be8e3e3d (diff) | |
download | ffmpeg-3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a.tar.gz |
avcodec/put_bits: Assert buf_ptr in flush_put_bits()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/put_bits.h')
-rw-r--r-- | libavcodec/put_bits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 0db8a033ad..68ed391195 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -105,7 +105,7 @@ static inline void flush_put_bits(PutBitContext *s) s->bit_buf <<= s->bit_left; #endif while (s->bit_left < 32) { - /* XXX: should test end of buffer */ + av_assert0(s->buf_ptr < s->buf_end); #ifdef BITSTREAM_WRITER_LE *s->buf_ptr++ = s->bit_buf; s->bit_buf >>= 8; |