aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-11-19 21:26:52 +0100
committerMarton Balint <cus@passwd.hu>2021-11-25 19:11:24 +0100
commit6f10f4a47948525174e654c9e312871dacdfc300 (patch)
treee4ef80c609b5134152040b46d6b0f60775e4d30a
parentb46817d9c3fe620ba02f2b3144444c431c6ba552 (diff)
downloadffmpeg-6f10f4a47948525174e654c9e312871dacdfc300.tar.gz
avformat/libsrt: add missing version check for snddropdelay
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/libsrt.c2
1 files changed, 2 insertions, 0 deletions
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) ||