[FFmpeg-devel] [PATCH 3/4] avcodec/alsdec: The minimal block is at least 7 bits
Michael Niedermayer
michael at niedermayer.cc
Sat Oct 29 22:13:52 EEST 2022
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/alsdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 17937ad928..eab382e74f 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1028,7 +1028,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
--
2.17.1
More information about the ffmpeg-devel
mailing list