---
libavformat/rtmpproto.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 6e90a9f..5a1e331 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -2784,6 +2784,8 @@ reconnect:
goto reconnect;
}
+ s->is_streamed = 1;
+
if (rt->is_input) {
int err;
// generate FLV header for demuxer
@@ -2820,6 +2822,9 @@ reconnect:
if ((ret = inject_fake_duration_metadata(rt)) < 0)
goto fail;
}
+
+ // If the stream is recorded or we know the duration, we can seek.
+ s->is_streamed = !(!rt->live || rt->duration > 0);
} else {
rt->flv_size = 0;
rt->flv_data = NULL;
@@ -2828,7 +2833,6 @@ reconnect:
}
s->max_packet_size = rt->stream->max_packet_size;
- s->is_streamed = 1;
return 0;
fail:
--
2.1.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel