summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-18 17:13:55 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-18 19:56:37 +0100
commit3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a (patch)
treea1fb794f8b408bbe04a35cbfb9762de1762bda72
parent4e17efd852bd3d83d1b6465614fc2d44be8e3e3d (diff)
downloadffmpeg-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.h2
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;
OpenPOWER on IntegriCloud