From 706d4e473604b40fbedc8df8787ce5977185bcb8 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 7 Feb 2026 19:21:02 -0300 Subject: [PATCH] avutil/iamf: stop setting parameter definition block defaults It was done for the sake of having subblock_duration not be zero as the spec forbids that value, but harcoding it to any arbitrary value is no better considering the user is meant to fill the entire structure. This helps speeding up the function when trying to allocate a struct with a huge amount of blocks. Signed-off-by: James Almer --- libavutil/iamf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavutil/iamf.c b/libavutil/iamf.c index ea0c87428f..76707563cb 100644 --- a/libavutil/iamf.c +++ b/libavutil/iamf.c @@ -226,8 +226,6 @@ AVIAMFParamDefinition *av_iamf_param_definition_alloc(enum AVIAMFParamDefinition default: av_assert0(0); } - - av_opt_set_defaults(subblock); } if (out_size)