diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index e8b95c56eb..a44b1d0c74 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1013,7 +1013,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