aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-05 17:07:16 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-05 17:07:16 +0200
commiteab95c0e7a7fad7d8fc5dd9b00b9ddb565d15925 (patch)
tree98a4b7c273e365cd8b30372b5340ff66bab69f01
parent579c88d151d55ea9bf302fe7006cbee8c8fa1d4e (diff)
downloadODR-AudioEnc-eab95c0e7a7fad7d8fc5dd9b00b9ddb565d15925.tar.gz
ODR-AudioEnc-eab95c0e7a7fad7d8fc5dd9b00b9ddb565d15925.tar.bz2
ODR-AudioEnc-eab95c0e7a7fad7d8fc5dd9b00b9ddb565d15925.zip
Properly apply -T option
-rw-r--r--src/Outputs.cpp1
-rw-r--r--src/odr-audioenc.cpp6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index f258881..eadbc5e 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -195,7 +195,6 @@ bool EDI::write_frame(const uint8_t *buf, size_t len)
for (int32_t sub_ms = (m_delay_ms % 1000); sub_ms > 0; sub_ms -= 24) {
m_timestamp += 24 << 14; // Shift 24ms by 14 to Timestamp level 2
}
-
}
edi::TagStarPTR edi_tagStarPtr("DSTI");
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp
index c3d4cb6..f4cf01e 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -609,6 +609,10 @@ int AudioEnc::run()
}
}
+ if (not edi_output_uris.empty()) {
+ edi_output.set_tist(tist_enabled, tist_delay_ms);
+ }
+
if (padlen != 0) {
int flags;
if (mkfifo(pad_fifo, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH) != 0) {
@@ -1368,7 +1372,7 @@ int main(int argc, char *argv[])
int ch=0;
int index;
while(ch != -1) {
- ch = getopt_long(argc, argv, "aAhDlRVb:B:c:e:f:i:j:k:L:o:r:d:p:P:s:S:v:w:Wg:C:", longopts, &index);
+ ch = getopt_long(argc, argv, "aAhDlRVb:B:c:e:f:i:j:k:L:o:r:d:p:P:s:S:T:v:w:Wg:C:", longopts, &index);
switch (ch) {
case 0: // AAC-LC
audio_enc.aot = AOT_DABPLUS_AAC_LC;