aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/odr-padenc.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp
index 4a3fa9c..26d3b08 100644
--- a/src/odr-padenc.cpp
+++ b/src/odr-padenc.cpp
@@ -277,12 +277,12 @@ void MOTHeader::IncrementHeaderSize(size_t size) {
}
void MOTHeader::AddExtensionFixedSize(int pli, int param_id, const uint8_t* data_field, size_t data_field_len) {
- AddParamHeader(pli, param_id);
+ AddParamHeader(pli, param_id);
- for (size_t i = 0; i < data_field_len; i++)
- data.push_back(data_field[i]);
+ for (size_t i = 0; i < data_field_len; i++)
+ data.push_back(data_field[i]);
- IncrementHeaderSize(1 + data_field_len);
+ IncrementHeaderSize(1 + data_field_len);
}
void MOTHeader::AddExtensionVarSize(int param_id, const uint8_t* data_field, size_t data_field_len) {
@@ -304,27 +304,27 @@ void MOTHeader::AddExtensionVarSize(int param_id, const uint8_t* data_field, siz
}
void MOTHeader::AddExtension(int param_id, const uint8_t* data_field, size_t data_field_len) {
- int pli;
-
- switch(data_field_len) {
- case 0:
- pli = 0b00;
- break;
- case 1:
- pli = 0b01;
- break;
- case 4:
- pli = 0b10;
- break;
- default:
- pli = 0b11;
- break;
- }
-
- if (pli == 0b11)
- AddExtensionVarSize(param_id, data_field, data_field_len);
- else
- AddExtensionFixedSize(pli, param_id, data_field, data_field_len);
+ int pli;
+
+ switch(data_field_len) {
+ case 0:
+ pli = 0b00;
+ break;
+ case 1:
+ pli = 0b01;
+ break;
+ case 4:
+ pli = 0b10;
+ break;
+ default:
+ pli = 0b11;
+ break;
+ }
+
+ if (pli == 0b11)
+ AddExtensionVarSize(param_id, data_field, data_field_len);
+ else
+ AddExtensionFixedSize(pli, param_id, data_field, data_field_len);
}