File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ static int _valid_codec(uint32_t codec) {
307307}
308308
309309#define OPUS_VERSION_MAX 15
310- static int _valid_decoder_conifg (uint32_t codec , uint8_t * conf , size_t size ) {
310+ static int _valid_decoder_config (uint32_t codec , uint8_t * conf , size_t size ) {
311311 if (iamf_codec_4cc_get_codecID (codec ) == IAMF_CODEC_OPUS ) {
312312 if (conf [0 ] > OPUS_VERSION_MAX ) {
313313 ia_logw ("opus config invalid: version %u should less than %u." , conf [0 ],
@@ -357,9 +357,11 @@ IAMF_CodecConf *iamf_codec_conf_new(IAMF_OBU *obu) {
357357 goto codec_conf_fail ;
358358 }
359359
360- if (!_valid_decoder_conifg (conf -> codec_id , conf -> decoder_conf ,
361- conf -> decoder_conf_size ))
360+ if (!_valid_decoder_config (conf -> codec_id , conf -> decoder_conf ,
361+ conf -> decoder_conf_size )) {
362+ ia_logw ("decoder config is invalid, codec: %.4s" , (char * )& conf -> codec_id );
362363 goto codec_conf_fail ;
364+ }
363365
364366#if SUPPORT_VERIFIER
365367 vlog_obu (IAMF_OBU_CODEC_CONFIG , conf , 0 , 0 );
You can’t perform that action at this time.
0 commit comments