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 | |
parent | 4e17efd852bd3d83d1b6465614fc2d44be8e3e3d (diff) | |
download | ffmpeg-streaming-3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a.zip ffmpeg-streaming-3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a.tar.gz |
avcodec/put_bits: Assert buf_ptr in flush_put_bits()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-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 0db8a03..68ed391 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; |