Message ID | 20221029191353.2973-3-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 5280947fb6db37063334eae5b467cecd2417b063 |
Headers | show |
Series | [FFmpeg-devel,1/4] avformat/replaygain: avoid undefined / negative abs | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Sat, Oct 29, 2022 at 09:13:52PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/alsdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply [...]
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 17937ad928..eab382e74f 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1028,7 +1028,7 @@ static int read_block(ALSDecContext *ctx, ALSBlockData *bd) *bd->shift_lsbs = 0; - if (get_bits_left(gb) < 1) + if (get_bits_left(gb) < 7) return AVERROR_INVALIDDATA; // read block type flag and read the samples accordingly
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)