diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-29 18:41:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-04-07 23:40:37 +0200 |
commit | 383a51855a516227a9663a06b959c4cbc5f50095 (patch) | |
tree | 313b893df03a5e98abc8c7b7c9a19e225fa0b37a | |
parent | 37aaa56842418503c3cc6e003398dea3632dbf00 (diff) | |
download | ffmpeg-383a51855a516227a9663a06b959c4cbc5f50095.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 e736905a76..917e7b6264 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 |