diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-29 18:41:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-06-04 20:18:11 +0200 |
commit | 42e5ab500a1d0f52ae120de20248486345c8850b (patch) | |
tree | 4557f744a9c94712d5d51b468e27571f03fb2d3e | |
parent | bf0b88d00a54b911c655175f88d2071b6c99b994 (diff) | |
download | ffmpeg-42e5ab500a1d0f52ae120de20248486345c8850b.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 4511eec424..e9b608880f 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1021,7 +1021,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 |