Ticket #906: ffserver_bind.patch

File ffserver_bind.patch, 503 bytes (added by alex_ac, 4 years ago)

Patch for current master branch.

  • ffserver.c

    diff --git a/ffserver.c b/ffserver.c
    index f198571..46d3972 100644
    a b static int parse_ffconfig(const char *filename) 
    40534053                ERROR("Invalid_port: %s\n", arg); 
    40544054            } 
    40554055            my_http_addr.sin_port = htons(val); 
     4056            my_http_addr.sin_family = AF_INET; 
    40564057        } else if (!av_strcasecmp(cmd, "BindAddress")) { 
    40574058            get_arg(arg, sizeof(arg), &p); 
    40584059            if (resolve_host(&my_http_addr.sin_addr, arg) != 0) {