[FFmpeg-cvslog] avcodec/alsdec: The minimal block is at least 7 bits

Michael Niedermayer git at videolan.org
Sun Apr 16 01:40:52 EEST 2023


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Sat Oct 29 18:41:24 2022 +0200| [19d7bbc1f00883a5d3b4c6ebaa1d1eb3109fa434] | committer: Michael Niedermayer

avcodec/alsdec: The minimal block is at least 7 bits

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 5280947fb6db37063334eae5b467cecd2417b063)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19d7bbc1f00883a5d3b4c6ebaa1d1eb3109fa434
---

 libavcodec/alsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index e74f09d1d6..fd2f6f022f 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1017,7 +1017,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



More information about the ffmpeg-cvslog mailing list