avcodec/put_bits: Always check buffer end before writing
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Jan 2016 01:41:06 +0000 (02:41 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jan 2016 16:39:04 +0000 (17:39 +0100)
commit1363d0759df3c6016bcbc30db016e3706ad5e6a7
treea409bb6dae4a8cf9572241659e09573563149025
parentf48392197d365f2a3a62e7ee8786fa4e9a41f3e9
avcodec/put_bits: Always check buffer end before writing

This causes a overall slowdown of 0.1 % (tested with mpeg4 single thread encoding of matrixbench at QP=3)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit cccb0ffccc3723acc7aab3a859b24743596dd9c0)

Conflicts:

libavcodec/put_bits.h
libavcodec/put_bits.h