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

Git pushed a commit to branch master
in repository ffmpeg.

commit 03a981445ee89a567e5a98ec88cbbbb8d3e3af72
Author:     James Almer <[email protected]>
AuthorDate: Sat Dec 27 17:08:30 2025 -0300
Commit:     James Almer <[email protected]>
CommitDate: Mon Dec 29 12:00:01 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]>
---
 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 b9f24c0d6a..b7d6c64b70 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -587,7 +587,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