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 <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-02-07 19:21:02 -03:00
parent 273b161a98
commit 706d4e4736

View File

@@ -226,8 +226,6 @@ AVIAMFParamDefinition *av_iamf_param_definition_alloc(enum AVIAMFParamDefinition
default:
av_assert0(0);
}
av_opt_set_defaults(subblock);
}
if (out_size)