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>
This commit is contained in:
parent
ffeb46560f
commit
ae61a4ca68
@ -1016,7 +1016,7 @@ static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
|
|||||||
|
|
||||||
*bd->shift_lsbs = 0;
|
*bd->shift_lsbs = 0;
|
||||||
|
|
||||||
if (get_bits_left(gb) < 1)
|
if (get_bits_left(gb) < 7)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
// read block type flag and read the samples accordingly
|
// read block type flag and read the samples accordingly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user