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()
354 uint8_t *buffer, *cur_buffer; in av_encryption_init_info_add_side_data() local
376 cur_buffer = buffer = av_malloc(*side_data_size); in av_encryption_init_info_add_side_data()
380 AV_WB32(cur_buffer, init_info_count); in av_encryption_init_info_add_side_data()
381 cur_buffer += 4; in av_encryption_init_info_add_side_data()
383 AV_WB32(cur_buffer, cur_info->system_id_size); in av_encryption_init_info_add_side_data()
384 AV_WB32(cur_buffer + 4, cur_info->num_key_ids); in av_encryption_init_info_add_side_data()
385 AV_WB32(cur_buffer + 8, cur_info->key_id_size); in av_encryption_init_info_add_side_data()
386 AV_WB32(cur_buffer + 12, cur_info->data_size); in av_encryption_init_info_add_side_data()
387 cur_buffer += 16; in av_encryption_init_info_add_side_data()
389 memcpy(cur_buffer, cur_info->system_id, cur_info->system_id_size); in av_encryption_init_info_add_side_data()
390 cur_buffer += cur_info->system_id_size; in av_encryption_init_info_add_side_data()
392 memcpy(cur_buffer, cur_info->key_ids[i], cur_info->key_id_size); in av_encryption_init_info_add_side_data()
393 cur_buffer += cur_info->key_id_size; in av_encryption_init_info_add_side_data()
396 memcpy(cur_buffer, cur_info->data, cur_info->data_size); in av_encryption_init_info_add_side_data()
397 cur_buffer += cur_info->data_size; in av_encryption_init_info_add_side_data()