Revision c24a4034 libavformat/sapenc.c

View differences:

libavformat/sapenc.c
240 240
    if (!sap->last_time || now - sap->last_time > 5000000) {
241 241
        int ret = url_write(sap->ann_fd, sap->ann, sap->ann_size);
242 242
        /* Don't abort even if we get "Destination unreachable" */
243
        if (ret < 0 && ret != FF_NETERROR(ECONNREFUSED))
243
        if (ret < 0 && ret != AVERROR(ECONNREFUSED))
244 244
            return ret;
245 245
        sap->last_time = now;
246 246
    }

Also available in: Unified diff