This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new febc82690d avcodec/alsdec: propagate read_diff_float_data() errors in 
read_frame_data()
febc82690d is described below

commit febc82690da3e054cf93b32203a2e19d3d1a935c
Author:     Priyanshu Thapliyal <[email protected]>
AuthorDate: Wed Mar 25 13:36:07 2026 +0530
Commit:     michaelni <[email protected]>
CommitDate: Sat Mar 28 11:53:38 2026 +0000

    avcodec/alsdec: propagate read_diff_float_data() errors in read_frame_data()
    
    The return value of read_diff_float_data() was previously ignored,
    allowing decode to continue silently with partially transformed samples
    on malformed floating ALS input. Check and propagate the error.
    
    All failure paths in read_diff_float_data() already return
    AVERROR_INVALIDDATA, so the caller fix is sufficient without
    any normalization inside the function.
    
    Signed-off-by: Priyanshu Thapliyal <[email protected]>
---
 libavcodec/alsdec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 242080a96d..a156c90390 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -1794,7 +1794,9 @@ static int read_frame_data(ALSDecContext *ctx, unsigned 
int ra_frame)
     }
 
     if (sconf->floating) {
-        read_diff_float_data(ctx, ra_frame);
+        ret = read_diff_float_data(ctx, ra_frame);
+        if (ret < 0)
+            return ret;
     }
 
     if (get_bits_left(gb) < 0) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to