Re: [FFmpeg-devel] [PATCH 5/7] get_bits: improve and fix get_bits_long for 32b

2020-04-14 Thread Michael Niedermayer
On Tue, Apr 14, 2020 at 10:25:01AM +, Christophe Gisquet wrote: > The new code is guaranteed to read at least 32bits, which is likely ok with > the usual case that get_bits without cache can read up to 25. > --- > libavcodec/get_bits.h | 29 ++--- > 1 file changed, 26 i

[FFmpeg-devel] [PATCH 5/7] get_bits: improve and fix get_bits_long for 32b

2020-04-14 Thread Christophe Gisquet
The new code is guaranteed to read at least 32bits, which is likely ok with the usual case that get_bits without cache can read up to 25. --- libavcodec/get_bits.h | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/libavcodec/get_bits.h b/libavcodec/