Revision ab0287fc libavformat/sapenc.c

View differences:

libavformat/sapenc.c
20 20
 */
21 21

  
22 22
#include "avformat.h"
23
#include "libavutil/parseutils.h"
23 24
#include "libavutil/random_seed.h"
24 25
#include "libavutil/avstring.h"
25 26
#include "libavutil/intreadwrite.h"
......
87 88
    option_list = strrchr(path, '?');
88 89
    if (option_list) {
89 90
        char buf[50];
90
        if (find_info_tag(buf, sizeof(buf), "announce_port", option_list)) {
91
        if (av_find_info_tag(buf, sizeof(buf), "announce_port", option_list)) {
91 92
            port = strtol(buf, NULL, 10);
92 93
        }
93
        if (find_info_tag(buf, sizeof(buf), "same_port", option_list)) {
94
        if (av_find_info_tag(buf, sizeof(buf), "same_port", option_list)) {
94 95
            same_port = strtol(buf, NULL, 10);
95 96
        }
96
        if (find_info_tag(buf, sizeof(buf), "ttl", option_list)) {
97
        if (av_find_info_tag(buf, sizeof(buf), "ttl", option_list)) {
97 98
            ttl = strtol(buf, NULL, 10);
98 99
        }
99
        if (find_info_tag(buf, sizeof(buf), "announce_addr", option_list)) {
100
        if (av_find_info_tag(buf, sizeof(buf), "announce_addr", option_list)) {
100 101
            av_strlcpy(announce_addr, buf, sizeof(announce_addr));
101 102
        }
102 103
    }

Also available in: Unified diff