diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-18 17:13:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-31 00:24:27 +0100 |
commit | 8394fa26961d16dea1fc9e7af7abd36b006dcd10 (patch) | |
tree | 71f11e9d21f4d6a443371a5a59da7ea225db7a3e /libavcodec/put_bits.h | |
parent | 524ee420502cdc387af000a67ab6f7d67eed8497 (diff) | |
download | ffmpeg-8394fa26961d16dea1fc9e7af7abd36b006dcd10.tar.gz |
avcodec/put_bits: Assert buf_ptr in flush_put_bits()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a)
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 413c758d17..86f9f63bac 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; |