Browse Source

Merge branch 'master' of ssh://acer/home/pe1rxq/shared/src/dml

master
Jeroen Vreeken 4 years ago
parent
commit
f27f5522ec
2 changed files with 20 additions and 6 deletions
  1. +10
    -3
      dml_reflector.c
  2. +10
    -3
      dml_trx.c

+ 10
- 3
dml_reflector.c View File

@ -321,6 +321,7 @@ int main(int argc, char **argv)
char *key;
char *server;
char *ca;
uint8_t *header;
if (argc > 1)
file = argv[1];
@ -389,9 +390,15 @@ int main(int argc, char **argv)
if (soundlib_header) {
soundlib_add_file(SOUND_MSG_HEADER, soundlib_header);
size_t header_size;
uint8_t *header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (header) {
dml_stream_header_set(stream_dv, header, header_size);
uint8_t *sl_header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (sl_header) {
header = calloc(1, header_size);
memcpy(header + 8, sl_header, header_size);
memset(header, 0xff, 6);
header[6] = 'A';
header[7] = 1;
dml_stream_header_set(stream_dv, header, header_size + 8);
}
}


+ 10
- 3
dml_trx.c View File

@ -963,6 +963,7 @@ int main(int argc, char **argv)
uint32_t bps = 6400;
struct dml_crypto_key *dk;
int fd_command;
uint8_t *header;
if (argc > 1)
file = argv[1];
@ -1103,9 +1104,15 @@ int main(int argc, char **argv)
if (soundlib_header) {
soundlib_add_file(SOUND_MSG_HEADER, soundlib_header);
size_t header_size;
uint8_t *header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (header) {
dml_stream_header_set(stream_dv, header, header_size);
uint8_t *sl_header = soundlib_get(SOUND_MSG_HEADER, &header_size);
if (sl_header) {
header = calloc(1, header_size);
memcpy(header + 8, sl_header, header_size);
memset(header, 0xff, 6);
header[6] = 'A';
header[7] = 1;
dml_stream_header_set(stream_dv, header, header_size + 8);
}
}


Loading…
Cancel
Save