Revision bc371aca libavformat/sapdec.c

View differences:

libavformat/sapdec.c
93 93
        int addr_type, auth_len;
94 94
        int pos;
95 95

  
96
        ret = url_read(sap->ann_fd, recvbuf, sizeof(recvbuf) - 1);
96
        ret = ffurl_read(sap->ann_fd, recvbuf, sizeof(recvbuf) - 1);
97 97
        if (ret == AVERROR(EAGAIN))
98 98
            continue;
99 99
        if (ret < 0)
......
195 195
        n = poll(&p, 1, 0);
196 196
        if (n <= 0 || !(p.revents & POLLIN))
197 197
            break;
198
        ret = url_read(sap->ann_fd, recvbuf, sizeof(recvbuf));
198
        ret = ffurl_read(sap->ann_fd, recvbuf, sizeof(recvbuf));
199 199
        if (ret >= 8) {
200 200
            uint16_t hash = AV_RB16(&recvbuf[2]);
201 201
            /* Should ideally check the source IP address, too */

Also available in: Unified diff