History

avformat/libsrt: add missing SRT_VERSION_VALUE check

This was missed in d7e2a2bb35e394287b3e3dc27744830bf0b7ca99.

Marton Balint committed 6 years ago

Commit fee4caf1 parent 1001b6a1 file · +2 −0Browse files

Unified · Split

libavformat/libsrt.c+2−0
@@ -525,6 +525,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) · 524 unmodified lines
525525 av_freep(&s->passphrase);
526526 s->passphrase = av_strndup(buf, strlen(buf));
527527 }
528+#if SRT_VERSION_VALUE >= 0x010302
528529 if (av_find_info_tag(buf, sizeof(buf), "enforced_encryption", p)) {
529530 s->enforced_encryption = strtol(buf, NULL, 10);
530531 }
@@ -534,6 +535,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) · 3 unmodified lines
534535 if (av_find_info_tag(buf, sizeof(buf), "kmpreannounce", p)) {
535536 s->kmpreannounce = strtol(buf, NULL, 10);
536537 }
538+#endif
537539 if (av_find_info_tag(buf, sizeof(buf), "mss", p)) {
538540 s->mss = strtol(buf, NULL, 10);
539541 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t