Commit 8f5ffed1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/put_bits: Assert that there is enough space left in skip_put_bytes()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 561d3a57
......@@ -229,6 +229,7 @@ static inline void skip_put_bytes(PutBitContext *s, int n)
{
av_assert2((put_bits_count(s) & 7) == 0);
av_assert2(s->bit_left == 32);
av_assert0(n <= s->buf_end - s->buf_ptr);
s->buf_ptr += n;
}
......
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