Lines Matching defs:ret

200     int ret;
203 if ((ret = getaddrinfo(buf, NULL, &hints, &ai))) {
206 gai_strerror(ret));
237 int ret = rtsp_st->dynamic_handler->init(s, st ? st->index : -1,
239 if (ret < 0) {
844 int ret = ff_rtp_chain_mux_open((AVFormatContext **)&rtsp_st->transport_priv,
850 if (ret < 0)
851 return ret;
1158 int ret, len, len1;
1161 ret = ffurl_read_complete(rt->rtsp_hd, buf, 3);
1162 if (ret != 3)
1163 return ret < 0 ? ret : AVERROR(EIO);
1173 ret = ffurl_read_complete(rt->rtsp_hd, buf, len1);
1174 if (ret != len1)
1175 return ret < 0 ? ret : AVERROR(EIO);
1190 int ret, content_length, line_count, request;
1204 ret = ffurl_read_complete(rt->rtsp_hd, &ch, 1);
1205 av_log(s, AV_LOG_TRACE, "ret=%d c=%02x [%c]\n", ret, ch, ch);
1206 if (ret != 1)
1207 return ret < 0 ? ret : AVERROR(EIO);
1214 ret = ff_rtsp_skip_packet(s);
1215 if (ret < 0)
1216 return ret;
1260 if ((ret = ffurl_read_complete(rt->rtsp_hd, content, content_length)) != content_length) {
1262 return ret < 0 ? ret : AVERROR(EIO);
1423 int ret, attempts = 0;
1427 if ((ret = rtsp_send_cmd_with_content_async(s, method, url, header,
1430 return ret;
1432 if ((ret = ff_rtsp_read_reply(s, reply, content_ptr, 0, method) ) < 0)
1433 return ret;
1890 int ret;
1895 if ((ret = ffurl_open_whitelist(&rt->rtsp_hd, tcpname, AVIO_FLAG_READ_WRITE,
1897 err = ret;
2020 int ret;
2029 ret = ff_rtsp_read_reply(s, &reply, NULL, 0, NULL);
2030 if (ret < 0)
2031 return ret;
2046 int n, i, ret;
2063 if (ret = ffurl_get_multi_file_handle(rtsp_st->rtp_handle,
2066 return ret;
2094 ret = ffurl_read(rtsp_st->rtp_handle, buf, buf_size);
2095 if (ret > 0) {
2097 return ret;
2105 if ((ret = parse_rtsp_message(s)) < 0) {
2106 return ret;
2202 int ret, len;
2212 ret = ff_rdt_parse_packet(rt->cur_transport_priv, pkt, NULL, 0);
2214 ret = ff_rtp_parse_packet(rt->cur_transport_priv, pkt, NULL, 0);
2216 ret = avpriv_mpegts_parse_packet(rt->ts, pkt, rt->recvbuf + rt->recvbuf_pos, rt->recvbuf_len - rt->recvbuf_pos);
2217 if (ret >= 0) {
2218 rt->recvbuf_pos += ret;
2219 ret = rt->recvbuf_pos < rt->recvbuf_len;
2222 ret = -1;
2223 if (ret == 0) {
2226 } else if (ret == 1) {
2269 ret = ff_rtp_parse_packet(rtsp_st->transport_priv, pkt, NULL, 0);
2276 ret = ff_rdt_parse_packet(rtsp_st->transport_priv, pkt, &rt->recvbuf, len);
2278 ret = ff_rtp_parse_packet(rtsp_st->transport_priv, pkt, &rt->recvbuf, len);
2285 if (ret < 0) {
2320 if (ret == -RTCP_BYE) {
2331 ret = avpriv_mpegts_parse_packet(rt->ts, pkt, rt->recvbuf, len);
2332 if (ret >= 0) {
2333 if (ret < len) {
2335 rt->recvbuf_pos = ret;
2339 ret = 0;
2346 if (ret < 0)
2348 if (ret == 1)
2352 return ret;
2510 int ret, port;
2526 ret = ffurl_open_whitelist(&in, s->url, AVIO_FLAG_READ,
2529 if (ret)
2533 ret = ffurl_read(in, recvbuf, sizeof(recvbuf));
2534 if (ret == AVERROR(EAGAIN))
2536 if (ret < 0)
2538 if (ret < 12) {
2560 ret = AVERROR(ENOMEM);
2568 ret = AVERROR_INVALIDDATA;
2622 ret = sdp_read_header(s);
2625 return ret;
2628 ret = AVERROR(ENOMEM);
2635 return ret;