Lines Matching refs:cur_buffer
127 uint8_t *buffer, *cur_buffer; in av_encryption_info_add_side_data() local
138 cur_buffer = buffer = av_malloc(*size); in av_encryption_info_add_side_data()
142 AV_WB32(cur_buffer, info->scheme); in av_encryption_info_add_side_data()
143 AV_WB32(cur_buffer + 4, info->crypt_byte_block); in av_encryption_info_add_side_data()
144 AV_WB32(cur_buffer + 8, info->skip_byte_block); in av_encryption_info_add_side_data()
145 AV_WB32(cur_buffer + 12, info->key_id_size); in av_encryption_info_add_side_data()
146 AV_WB32(cur_buffer + 16, info->iv_size); in av_encryption_info_add_side_data()
147 AV_WB32(cur_buffer + 20, info->subsample_count); in av_encryption_info_add_side_data()
148 cur_buffer += 24; in av_encryption_info_add_side_data()
149 memcpy(cur_buffer, info->key_id, info->key_id_size); in av_encryption_info_add_side_data()
150 cur_buffer += info->key_id_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()
154 AV_WB32(cur_buffer, info->subsamples[i].bytes_of_clear_data); in av_encryption_info_add_side_data()
155 AV_WB32(cur_buffer + 4, info->subsamples[i].bytes_of_protected_data); in av_encryption_info_add_side_data()
156 cur_buffer += 8; in av_encryption_info_add_side_data()
293 uint8_t *buffer, *cur_buffer; in av_encryption_init_info_add_side_data() local
315 cur_buffer = buffer = av_malloc(*side_data_size); in av_encryption_init_info_add_side_data()
319 AV_WB32(cur_buffer, init_info_count); in av_encryption_init_info_add_side_data()
320 cur_buffer += 4; in av_encryption_init_info_add_side_data()
322 AV_WB32(cur_buffer, cur_info->system_id_size); in av_encryption_init_info_add_side_data()
323 AV_WB32(cur_buffer + 4, cur_info->num_key_ids); in av_encryption_init_info_add_side_data()
324 AV_WB32(cur_buffer + 8, cur_info->key_id_size); in av_encryption_init_info_add_side_data()
325 AV_WB32(cur_buffer + 12, cur_info->data_size); in av_encryption_init_info_add_side_data()
326 cur_buffer += 16; in av_encryption_init_info_add_side_data()
328 memcpy(cur_buffer, cur_info->system_id, cur_info->system_id_size); in av_encryption_init_info_add_side_data()
329 cur_buffer += cur_info->system_id_size; in av_encryption_init_info_add_side_data()
331 memcpy(cur_buffer, cur_info->key_ids[i], cur_info->key_id_size); in av_encryption_init_info_add_side_data()
332 cur_buffer += cur_info->key_id_size; in av_encryption_init_info_add_side_data()
335 memcpy(cur_buffer, cur_info->data, cur_info->data_size); in av_encryption_init_info_add_side_data()
336 cur_buffer += cur_info->data_size; in av_encryption_init_info_add_side_data()