diff options
author | Marton Balint <cus@passwd.hu> | 2020-01-21 23:01:31 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-01-23 22:41:43 +0100 |
commit | fee4cafbf52f81ffd6ad7ed4fd0a8096f8791886 (patch) | |
tree | e0609937693343d75d1a9282e0f9cd0cf57aa847 | |
parent | 1001b6a750fd6844a79c0f6551007a75ab7848b2 (diff) | |
download | ffmpeg-fee4cafbf52f81ffd6ad7ed4fd0a8096f8791886.tar.gz |
avformat/libsrt: add missing SRT_VERSION_VALUE check
This was missed in d7e2a2bb35e394287b3e3dc27744830bf0b7ca99.
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/libsrt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index 443df5bee8..d7faa603f5 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -525,6 +525,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) av_freep(&s->passphrase); s->passphrase = av_strndup(buf, strlen(buf)); } +#if SRT_VERSION_VALUE >= 0x010302 if (av_find_info_tag(buf, sizeof(buf), "enforced_encryption", p)) { s->enforced_encryption = strtol(buf, NULL, 10); } @@ -534,6 +535,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) if (av_find_info_tag(buf, sizeof(buf), "kmpreannounce", p)) { s->kmpreannounce = strtol(buf, NULL, 10); } +#endif if (av_find_info_tag(buf, sizeof(buf), "mss", p)) { s->mss = strtol(buf, NULL, 10); } |