Lines Matching defs:iv_size
30 // u32be iv_size
33 // u8[iv_size] iv
39 AVEncryptionInfo *av_encryption_info_alloc(uint32_t subsample_count, uint32_t key_id_size, uint32_t iv_size)
49 info->iv = av_mallocz(iv_size);
50 info->iv_size = iv_size;
67 ret = av_encryption_info_alloc(info->subsample_count, info->key_id_size, info->iv_size);
74 memcpy(ret->iv, info->iv, info->iv_size);
93 uint64_t key_id_size, iv_size, subsample_count, i;
99 iv_size = AV_RB32(buffer + 16);
102 if (size < FF_ENCRYPTION_INFO_EXTRA + key_id_size + iv_size + subsample_count * 8)
105 info = av_encryption_info_alloc(subsample_count, key_id_size, iv_size);
113 memcpy(info->iv, buffer + key_id_size + 24, iv_size);
115 buffer += key_id_size + iv_size + 24;
131 UINT32_MAX - FF_ENCRYPTION_INFO_EXTRA - info->key_id_size < info->iv_size ||
132 (UINT32_MAX - FF_ENCRYPTION_INFO_EXTRA - info->key_id_size - info->iv_size) / 8 < info->subsample_count) {
136 *size = FF_ENCRYPTION_INFO_EXTRA + info->key_id_size + info->iv_size +
146 AV_WB32(cur_buffer + 16, info->iv_size);
151 memcpy(cur_buffer, info->iv, info->iv_size);
152 cur_buffer += info->iv_size;
193 if ((info == NULL) || (info->key_id_size != AV_DRM_KEY_ID_SIZE) || (info->iv_size > AV_DRM_IV_SIZE) ||
194 (info->iv_size == 0) || (info->subsample_count > AV_DRM_MAX_SUB_SAMPLE_NUM) || (info->key_id == NULL) ||
207 cenc_info->iv_len = info->iv_size;
208 memcpy(cenc_info->iv, info->iv, info->iv_size);