mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/put_bits: Assert buf_ptr in flush_put_bits()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3ef5de0f19
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7142ddcf92
commit
c88fa43a3a
|
@ -88,7 +88,7 @@ static inline void flush_put_bits(PutBitContext *s)
|
||||||
s->bit_buf <<= s->bit_left;
|
s->bit_buf <<= s->bit_left;
|
||||||
#endif
|
#endif
|
||||||
while (s->bit_left < 32) {
|
while (s->bit_left < 32) {
|
||||||
/* XXX: should test end of buffer */
|
av_assert0(s->buf_ptr < s->buf_end);
|
||||||
#ifdef BITSTREAM_WRITER_LE
|
#ifdef BITSTREAM_WRITER_LE
|
||||||
*s->buf_ptr++ = s->bit_buf;
|
*s->buf_ptr++ = s->bit_buf;
|
||||||
s->bit_buf >>= 8;
|
s->bit_buf >>= 8;
|
||||||
|
|
Loading…
Reference in New Issue