summaryrefslogtreecommitdiff
path: root/testmuxer.c
diff options
context:
space:
mode:
Diffstat (limited to 'testmuxer.c')
-rw-r--r--testmuxer.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testmuxer.c b/testmuxer.c
new file mode 100644
index 0000000..69b693c
--- /dev/null
+++ b/testmuxer.c
@@ -0,0 +1,21 @@
+#include "common.h"
+#include "transmuxer.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+ struct StreamerOpt opts = {
+ .filename = "test/stream.m3u8"
+ };
+
+ if (argc != 2) {
+ fprintf(stderr, "usage: %s FILE\n", argv[0]);
+ return EXIT_FAILURE;
+ }
+
+ HLSRemuxer *remuxer = hls_remuxer_init(&opts);
+ hls_remuxer_play(remuxer, argv[1]);
+
+ return EXIT_SUCCESS;
+}