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
525 av_freep(&s->passphrase);525 av_freep(&s->passphrase);
526 s->passphrase = av_strndup(buf, strlen(buf));526 s->passphrase = av_strndup(buf, strlen(buf));
527 }527 }
528#if SRT_VERSION_VALUE >= 0x010302
528 if (av_find_info_tag(buf, sizeof(buf), "enforced_encryption", p)) {529 if (av_find_info_tag(buf, sizeof(buf), "enforced_encryption", p)) {
529 s->enforced_encryption = strtol(buf, NULL, 10);530 s->enforced_encryption = strtol(buf, NULL, 10);
530 }531 }
@@ -534,6 +535,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags) · 3 unmodified lines
534 if (av_find_info_tag(buf, sizeof(buf), "kmpreannounce", p)) {535 if (av_find_info_tag(buf, sizeof(buf), "kmpreannounce", p)) {
535 s->kmpreannounce = strtol(buf, NULL, 10);536 s->kmpreannounce = strtol(buf, NULL, 10);
536 }537 }
538#endif
537 if (av_find_info_tag(buf, sizeof(buf), "mss", p)) {539 if (av_find_info_tag(buf, sizeof(buf), "mss", p)) {
538 s->mss = strtol(buf, NULL, 10);540 s->mss = strtol(buf, NULL, 10);
539 }541 }

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