summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-09 18:45:56 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-09 18:45:56 +0100
commit7f04d6f2f729530a215c80686a10387d76de82c1 (patch)
tree14e6b492363665bbbf563a7d1fc40a1cef502f6b
parent47c8b0f50de550e0a19156cd30d948cc2e015667 (diff)
downloadfdk-aac-dabplus-7f04d6f2f729530a215c80686a10387d76de82c1.tar.gz
fdk-aac-dabplus-7f04d6f2f729530a215c80686a10387d76de82c1.tar.bz2
fdk-aac-dabplus-7f04d6f2f729530a215c80686a10387d76de82c1.zip
make mot-encoder recognise -t option
-rw-r--r--src/mot-encoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mot-encoder.c b/src/mot-encoder.c
index de4987e..18703b1 100644
--- a/src/mot-encoder.c
+++ b/src/mot-encoder.c
@@ -93,7 +93,7 @@ void writeMotPAD(int output_fd,
unsigned short int padlen);
void create_dls_datagroup (char* text, int padlen, unsigned char*** p_dlsdg, int* p_numdg);
-void writeDLS(int output_fd, int padlen);
+void writeDLS(int output_fd, const char* dls_file, int padlen);
void usage(char* name)
{
@@ -197,7 +197,7 @@ int main(int argc, char *argv[])
}
else {
fidx++;
- writeDLS(output_fd, padlen);
+ writeDLS(output_fd, dls_file, padlen);
sleep(10);
}
}
@@ -524,7 +524,7 @@ void writeMotPAD(int output_fd,
}
-void writeDLS(int output_fd, int padlen) {
+void writeDLS(int output_fd, const char* dls_file, int padlen) {
char dlstext[MAXDLS];
static char dlstextprev[MAXDLS];
int dlslen;
@@ -538,7 +538,7 @@ void writeDLS(int output_fd, int padlen) {
close(dlsfd);
}
- dlsfd = open("/tmp/dls.file", O_RDONLY);
+ dlsfd = open(dls_file, O_RDONLY);
if (dlsfd == -1) {
fprintf(stderr,"Error - Cannot open dls file\n");
return;