diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-29 18:41:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-04-21 01:55:08 +0200 |
commit | 5f61c15e3c260deccc40208a6a5b45d6f72b794f (patch) | |
tree | a9d75f8428e4a0191d3b12d212e768c48fd0add5 | |
parent | e205351fa97f1f190d6df3059fedee5d2697c203 (diff) | |
download | ffmpeg-5f61c15e3c260deccc40208a6a5b45d6f72b794f.tar.gz |
avcodec/alsdec: The minimal block is at least 7 bits
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5280947fb6db37063334eae5b467cecd2417b063)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 6f3311356d..e37d4c33bc 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1016,7 +1016,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 |