diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-29 18:41:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-05-26 00:04:30 +0200 |
commit | ae61a4ca68a76aac9def0652dab222a607c7b1fd (patch) | |
tree | 8642980411305aef1a64d7add8c28d2a01500d27 /libavcodec/alsdec.c | |
parent | ffeb46560fbc93315116f47021f0fea6f14fe1a7 (diff) | |
download | ffmpeg-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.c | 2 |
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 |