aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-10-29 18:41:24 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-03-27 13:37:12 +0200
commit9ea6ebd12a9cb599f13ff4bf572f2cf90a848cfa (patch)
tree4d1819ae7ae51245d54a634971003ec7bd21f500 /libavcodec
parent889a2953849c251d2b8f96a753e0becdc4aa8a2c (diff)
downloadffmpeg-9ea6ebd12a9cb599f13ff4bf572f2cf90a848cfa.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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alsdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 9e1aaf065a..9c3be4e037 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