diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2021-06-04 15:22:27 +0800 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2021-06-09 00:07:10 +0200 |
commit | 9099046cc76c9e3bf02f62a237b4d444cdaf5b20 (patch) | |
tree | 789a56a6a524832e71dc64d327a46afd3de9b8f7 | |
parent | 3249b963421cf5ff0e6adf2e38c86194fdf50929 (diff) | |
download | ffmpeg-9099046cc76c9e3bf02f62a237b4d444cdaf5b20.tar.gz |
avformat/libsrt: send message in order
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.
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/libsrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |