Browse Source

avformat/libsrt: add missing SRT_VERSION_VALUE check

This was missed in d7e2a2bb35.

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n4.3
Marton Balint 6 years ago
parent
commit
fee4cafbf5
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/libsrt.c

+ 2
- 0
libavformat/libsrt.c View File

@@ -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);
}


Loading…
Cancel
Save