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

Git pushed a commit to branch release/7.1
in repository ffmpeg.

commit bdfaec89febaabaf05cb4d5df72396b548ce6178
Author:     James Almer <[email protected]>
AuthorDate: Sat Dec 27 17:08:30 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Tue Dec 30 20:25:18 2025 -0300

    avformat/iamf_parse: fix setting denominator in AVIAMFLayer.demixing_matrix
    
    The format of demixing_matrix is Q15 fixed point values.
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 03a981445ee89a567e5a98ec88cbbbb8d3e3af72)
---
 libavformat/iamf_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 8fe7e1bb0e..1050219591 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -487,7 +487,7 @@ static int ambisonics_config(void *s, AVIOContext *pb,
             return AVERROR(ENOMEM);
 
         for (int i = 0; i < demixing_matrix_size; i++)
-            layer->demixing_matrix[i] = av_make_q(sign_extend(avio_rb16(pb), 
16), 1 << 8);
+            layer->demixing_matrix[i] = av_make_q(sign_extend(avio_rb16(pb), 
16), 1 << 15);
 
         for (int i = 0; i < substream_count; i++) {
             IAMFSubStream *substream = &audio_element->substreams[i];

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

Reply via email to