summaryrefslogtreecommitdiff
path: root/testmuxer.c
diff options
context:
space:
mode:
authorbbergeron <[email protected]>2024-04-03 17:32:01 -0400
committerbbergeron <[email protected]>2024-04-03 17:32:01 -0400
commitc1cb78d574c0429aa5e3ff3a2b3886e4bc153212 (patch)
treebf68806bcbddcafafc015b28c25550ea457eeecc /testmuxer.c
Reset Git repo and use a pseudonym to sign commits
I used to sign my commits with my real name and my personal email address, which I wanted scrubbed off the "B." pseudosphere. Re-creating a new git repository was safer than simpler than re-writing the history (although the latter could've also worked but, oh well).
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;
+}