Message ID | 20200908212921.7408-3-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 64917ea6cff4022c2b3e08b58b0e4795614aa8cf |
Headers | show |
Series | avcodec/fastaudio: Bugfixes | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
On Tue, Sep 08, 2020 at 11:29:20PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/fastaudio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > ok
On Wed, Sep 09, 2020 at 03:01:41AM +0200, Paul B Mahol wrote: > On Tue, Sep 08, 2020 at 11:29:20PM +0200, Michael Niedermayer wrote: > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > > --- > > libavcodec/fastaudio.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > ok will apply thx [...]
diff --git a/libavcodec/fastaudio.c b/libavcodec/fastaudio.c index 34857d1b88..16f44790f5 100644 --- a/libavcodec/fastaudio.c +++ b/libavcodec/fastaudio.c @@ -95,7 +95,7 @@ static int read_bits(int bits, int *ppos, unsigned *src) r = src[(pos - 1) / 32] >> (32 - pos % 32); *ppos = pos; - return r & ((1 << (bits % 32)) - 1); + return r & ((1 << bits) - 1); } static const uint8_t bits[8] = { 6, 6, 5, 5, 4, 0, 3, 3, };
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/fastaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)