Revision ab0287fc libavformat/udp.c

View differences:

libavformat/udp.c
27 27
#define _BSD_SOURCE     /* Needed for using struct ip_mreq with recent glibc */
28 28
#define _DARWIN_C_SOURCE /* Needed for using IP_MULTICAST_TTL on OS X */
29 29
#include "avformat.h"
30
#include "libavutil/parseutils.h"
30 31
#include <unistd.h>
31 32
#include "internal.h"
32 33
#include "network.h"
......
259 260
    s->is_multicast = ff_is_multicast_address((struct sockaddr*) &s->dest_addr);
260 261
    p = strchr(uri, '?');
261 262
    if (p) {
262
        if (find_info_tag(buf, sizeof(buf), "connect", p)) {
263
        if (av_find_info_tag(buf, sizeof(buf), "connect", p)) {
263 264
            int was_connected = s->is_connected;
264 265
            s->is_connected = strtol(buf, NULL, 10);
265 266
            if (s->is_connected && !was_connected) {
......
330 331

  
331 332
    p = strchr(uri, '?');
332 333
    if (p) {
333
        if (find_info_tag(buf, sizeof(buf), "reuse", p)) {
334
        if (av_find_info_tag(buf, sizeof(buf), "reuse", p)) {
334 335
            const char *endptr=NULL;
335 336
            s->reuse_socket = strtol(buf, &endptr, 10);
336 337
            /* assume if no digits were found it is a request to enable it */
......
338 339
                s->reuse_socket = 1;
339 340
            reuse_specified = 1;
340 341
        }
341
        if (find_info_tag(buf, sizeof(buf), "ttl", p)) {
342
        if (av_find_info_tag(buf, sizeof(buf), "ttl", p)) {
342 343
            s->ttl = strtol(buf, NULL, 10);
343 344
        }
344
        if (find_info_tag(buf, sizeof(buf), "localport", p)) {
345
        if (av_find_info_tag(buf, sizeof(buf), "localport", p)) {
345 346
            s->local_port = strtol(buf, NULL, 10);
346 347
        }
347
        if (find_info_tag(buf, sizeof(buf), "pkt_size", p)) {
348
        if (av_find_info_tag(buf, sizeof(buf), "pkt_size", p)) {
348 349
            h->max_packet_size = strtol(buf, NULL, 10);
349 350
        }
350
        if (find_info_tag(buf, sizeof(buf), "buffer_size", p)) {
351
        if (av_find_info_tag(buf, sizeof(buf), "buffer_size", p)) {
351 352
            s->buffer_size = strtol(buf, NULL, 10);
352 353
        }
353
        if (find_info_tag(buf, sizeof(buf), "connect", p)) {
354
        if (av_find_info_tag(buf, sizeof(buf), "connect", p)) {
354 355
            s->is_connected = strtol(buf, NULL, 10);
355 356
        }
356 357
    }

Also available in: Unified diff