diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-29 18:41:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-04-15 22:37:59 +0200 |
commit | 19d7bbc1f00883a5d3b4c6ebaa1d1eb3109fa434 (patch) | |
tree | 202dc8550c68402586e12369b12edd2c482ba1a6 | |
parent | f09a1d83da7859f4f8a2e53db30128522ffd3373 (diff) | |
download | ffmpeg-19d7bbc1f00883a5d3b4c6ebaa1d1eb3109fa434.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 e74f09d1d6..fd2f6f022f 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1017,7 +1017,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 |