diff mbox series

[FFmpeg-devel,v2,1/2] avformat/libsrt: send message in order

Message ID tencent_E4D0AB514E1470542D9B9A5140AE9A2D9F08@qq.com
State Accepted
Headers show
Series [FFmpeg-devel,v2,1/2] avformat/libsrt: send message in order | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Zhao Zhili June 4, 2021, 7:22 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

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 mbox series

Patch

diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index afbf01fc87..5298725ad5 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -690,7 +690,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);
     }