[FFmpeg-cvslog] avformat/libsrt: add missing version check for snddropdelay
Marton Balint
git at videolan.org
Thu Nov 25 20:21:15 EET 2021
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Nov 19 21:26:52 2021 +0100| [6f10f4a47948525174e654c9e312871dacdfc300] | committer: Marton Balint
avformat/libsrt: add missing version check for snddropdelay
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f10f4a47948525174e654c9e312871dacdfc300
---
libavformat/libsrt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index 145eea2f7c..19b9cb9895 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -320,7 +320,9 @@ static int libsrt_set_options_pre(URLContext *h, int fd)
int latency = s->latency / 1000;
int rcvlatency = s->rcvlatency / 1000;
int peerlatency = s->peerlatency / 1000;
+#if SRT_VERSION_VALUE >= 0x010302
int snddropdelay = s->snddropdelay > 0 ? s->snddropdelay / 1000 : s->snddropdelay;
+#endif
int connect_timeout = s->connect_timeout;
if ((s->mode == SRT_MODE_RENDEZVOUS && libsrt_setsockopt(h, fd, SRTO_RENDEZVOUS, "SRTO_RENDEZVOUS", &yes, sizeof(yes)) < 0) ||
More information about the ffmpeg-cvslog
mailing list