From: Zhao Zhili <[email protected]>

There is no good use case for out of order delivery of data. For live
streaming with TSBPD enabled by default, the receiver get data in order
based on the timestamps. However, if TSBPD is disabled, the data can
be delivered out of order.
---
 libavformat/libsrt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index c1e96f700e..edebb49edf 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -683,7 +683,7 @@ static int libsrt_write(URLContext *h, const uint8_t *buf, 
int size)
             return ret;
     }
 
-    ret = srt_sendmsg(s->fd, buf, size, -1, 0);
+    ret = srt_sendmsg(s->fd, buf, size, -1, 1);
     if (ret < 0) {
         ret = libsrt_neterrno(h);
     }
-- 
2.31.1

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to