aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-10-29 18:41:24 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-05-26 00:04:30 +0200
commitae61a4ca68a76aac9def0652dab222a607c7b1fd (patch)
tree8642980411305aef1a64d7add8c28d2a01500d27 /libavcodec/alsdec.c
parentffeb46560fbc93315116f47021f0fea6f14fe1a7 (diff)
downloadffmpeg-ae61a4ca68a76aac9def0652dab222a607c7b1fd.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/alsdec.c')
-rw-r--r--libavcodec/alsdec.c2
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