aboutsummaryrefslogtreecommitdiff
path: root/transcode_talker.c
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-12-20 05:09:26 +0800
committerMistivia <i@mistivia.com>2025-12-20 05:25:07 +0800
commit038c58b0ac053dbfe8aea3faab73863000d5fdc9 (patch)
tree5a7e477a5f75d76be7adc9dcaab82347bac82ae7 /transcode_talker.c
parentbb725cc3802b42992666e18d0758459e4332cdd7 (diff)
use srt instead of rtmp
Diffstat (limited to 'transcode_talker.c')
-rw-r--r--transcode_talker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transcode_talker.c b/transcode_talker.c
index 3e2f05c..11fa53a 100644
--- a/transcode_talker.c
+++ b/transcode_talker.c
@@ -177,8 +177,8 @@ void* TranscodeTalker_main (void *vself) {
while (wait_for_new_stream(self)) {
AVFormatContext *in_fmt_ctx = avformat_alloc_context();
in_fmt_ctx->pb = create_avio_from_ringbuffer(self->stream, 4096);
- const AVInputFormat *flv_fmt = av_find_input_format("flv");
- if (avformat_open_input(&in_fmt_ctx, NULL, flv_fmt, NULL) < 0) {
+ const AVInputFormat *input_fmt = av_find_input_format("mpegts");
+ if (avformat_open_input(&in_fmt_ctx, NULL, input_fmt, NULL) < 0) {
fprintf(stderr, "Could not open input file\n");
continue;
}