Lines Matching refs:iv_size
39 …ionInfo *av_encryption_info_alloc(uint32_t subsample_count, uint32_t key_id_size, uint32_t iv_size) in av_encryption_info_alloc() argument
49 info->iv = av_mallocz(iv_size); in av_encryption_info_alloc()
50 info->iv_size = iv_size; in av_encryption_info_alloc()
67 ret = av_encryption_info_alloc(info->subsample_count, info->key_id_size, info->iv_size); in av_encryption_info_clone()
74 memcpy(ret->iv, info->iv, info->iv_size); in av_encryption_info_clone()
93 uint64_t key_id_size, iv_size, subsample_count, i; in av_encryption_info_get_side_data() local
99 iv_size = AV_RB32(buffer + 16); in av_encryption_info_get_side_data()
102 if (size < FF_ENCRYPTION_INFO_EXTRA + key_id_size + iv_size + subsample_count * 8) in av_encryption_info_get_side_data()
105 info = av_encryption_info_alloc(subsample_count, key_id_size, iv_size); in av_encryption_info_get_side_data()
113 memcpy(info->iv, buffer + key_id_size + 24, iv_size); in av_encryption_info_get_side_data()
115 buffer += key_id_size + iv_size + 24; in av_encryption_info_get_side_data()
131 UINT32_MAX - FF_ENCRYPTION_INFO_EXTRA - info->key_id_size < info->iv_size || in av_encryption_info_add_side_data()
132 …(UINT32_MAX - FF_ENCRYPTION_INFO_EXTRA - info->key_id_size - info->iv_size) / 8 < info->subsample_… in av_encryption_info_add_side_data()
136 *size = FF_ENCRYPTION_INFO_EXTRA + info->key_id_size + info->iv_size + in av_encryption_info_add_side_data()
146 AV_WB32(cur_buffer + 16, info->iv_size); in av_encryption_info_add_side_data()
151 memcpy(cur_buffer, info->iv, info->iv_size); in av_encryption_info_add_side_data()
152 cur_buffer += info->iv_size; in av_encryption_info_add_side_data()