aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/iamf_writer.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-27 15:22:00 -0300
committerJames Almer <jamrial@gmail.com>2024-11-13 12:38:04 -0300
commitedc7b675082e84b39cfaad61eb93d500f53a7db6 (patch)
treed962a184ddf1b493189ec9d2e083187e362b31ca /libavformat/iamf_writer.c
parent20af68b63a49e41b0b4233833230eff32778ad20 (diff)
downloadffmpeg-edc7b675082e84b39cfaad61eb93d500f53a7db6.tar.gz
avformat/iamf: use the new Binaural channel layout
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/iamf_writer.c')
-rw-r--r--libavformat/iamf_writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c
index 1b620c38ee..7703729e07 100644
--- a/libavformat/iamf_writer.c
+++ b/libavformat/iamf_writer.c
@@ -817,6 +817,9 @@ static int iamf_write_mixing_presentation(const IAMFContext *iamf,
av_log(log_ctx, AV_LOG_ERROR, "Invalid Sound System value in a submix\n");
return AVERROR(EINVAL);
}
+ } else if (submix_layout->layout_type != AV_IAMF_SUBMIX_LAYOUT_TYPE_BINAURAL) {
+ av_log(log_ctx, AV_LOG_ERROR, "Unsupported Layout Type value in a submix\n");
+ return AVERROR(EINVAL);
}
init_put_bits(&pbc, header, sizeof(header));
put_bits(&pbc, 2, submix_layout->layout_type); // layout_type