Commit 3ef5de0f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/put_bits: Assert buf_ptr in flush_put_bits()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4e17efd8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment