aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Pöschel <spoeschel@irt.de>2017-02-06 23:56:42 +0100
committerStefan Pöschel <spoeschel@irt.de>2017-02-06 23:56:42 +0100
commit19a6f1f7ab63e82264e5bbb647bca3573cc673dc (patch)
tree68f6950965c076aebacaeb5bac8b51406c3a48f3 /src
parentf74467bc383338a26fd99005c403cfb273e49f51 (diff)
downloadODR-PadEnc-19a6f1f7ab63e82264e5bbb647bca3573cc673dc.tar.gz
ODR-PadEnc-19a6f1f7ab63e82264e5bbb647bca3573cc673dc.tar.bz2
ODR-PadEnc-19a6f1f7ab63e82264e5bbb647bca3573cc673dc.zip
Replace tabs by spaces
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);
}