Lines Matching defs:ret

627     int ret;
631 ret = ff_http_do_new_request2(uc, url, options);
632 if (ret < 0) {
635 return ret;
645 int ret;
691 ret = open_url_keepalive(c->ctx, pb, url, &tmp);
692 if (ret == AVERROR_EXIT) {
694 return ret;
695 } else if (ret < 0) {
696 if (ret != AVERROR_EOF)
699 url, av_err2str(ret));
702 ret = s->io_open(s, pb, url, AVIO_FLAG_READ, &tmp);
705 ret = s->io_open(s, pb, url, AVIO_FLAG_READ, &tmp);
707 if (ret >= 0) {
723 return ret;
729 int ret = 0, is_segment = 0, is_variant = 0;
751 ret = open_url_keepalive(c->ctx, &c->playlist_pb, url, NULL);
752 if (ret == AVERROR_EXIT) {
753 return ret;
754 } else if (ret < 0) {
755 if (ret != AVERROR_EOF)
758 url, av_err2str(ret));
770 ret = c->ctx->io_open(c->ctx, &in, url, AVIO_FLAG_READ, &opts);
772 if (ret < 0)
773 return ret;
786 ret = AVERROR_INVALIDDATA;
829 ret = ensure_playlist(c, &pls, url);
830 if (ret < 0)
834 ret = AVERROR_INVALIDDATA;
840 ret = ensure_playlist(c, &pls, url);
841 if (ret < 0)
851 ret = ensure_playlist(c, &pls, url);
852 if (ret < 0)
860 ret = ensure_playlist(c, &pls, url);
861 if (ret < 0)
867 ret = AVERROR(ENOMEM);
883 ret = AVERROR_INVALIDDATA;
889 ret = AVERROR(ENOMEM);
898 ret = ensure_playlist(c, &pls, url);
899 if (ret < 0) {
928 ret = AVERROR(ENOMEM);
935 ret = ensure_playlist(c, &pls, url);
936 if (ret < 0)
940 ret = AVERROR(ENOMEM);
954 ret = AVERROR_INVALIDDATA;
961 ret = AVERROR(ENOMEM);
970 ret = AVERROR_INVALIDDATA;
980 ret = AVERROR(ENOMEM);
1039 return ret;
1061 int ret;
1067 ret = avio_read(pls->input, buf, buf_size);
1068 if (ret > 0)
1069 pls->cur_seg_offset += ret;
1071 return ret;
1278 int ret;
1298 ret = avio_read(pb, pls->key, sizeof(pls->key));
1299 if (ret != sizeof(pls->key)) {
1324 ret = open_url(pls->parent, in, url, &c->avio_opts, opts, &is_http);
1325 if (ret < 0) {
1328 ret = 0;
1330 ret = open_url(pls->parent, in, seg->url, &c->avio_opts, opts, &is_http);
1343 if (ret == 0 && !is_http && seg->url_offset) {
1347 ret = seekret;
1355 return ret;
1364 int ret;
1374 ret = open_input(c, pls, seg->init_section, &pls->input);
1375 if (ret < 0) {
1379 return ret;
1397 ret = read_from_url(pls, seg->init_section, pls->init_sec_buf,
1401 if (ret < 0)
1402 return ret;
1405 pls->init_sec_data_len = ret;
1472 int ret;
1504 if ((ret = parse_playlist(c, v->url, v, NULL)) < 0) {
1505 if (ret != AVERROR_EXIT)
1508 return ret;
1548 ret = update_init_section(v, seg);
1549 if (ret)
1550 return ret;
1556 ret = 0;
1558 ret = open_input(c, v, seg, &v->input);
1560 if (ret < 0) {
1584 ret = open_input(c, v, seg, &v->input_next);
1585 if (ret < 0) {
1605 ret = read_from_url(v, seg, buf, buf_size);
1606 if (ret > 0) {
1610 intercept_id3(v, buf, buf_size, &ret);
1613 return ret;
1924 int ret = 0, i;
1934 if ((ret = ffio_copy_url_options(s->pb, &c->avio_opts)) < 0)
1935 return ret;
1942 if ((ret = parse_playlist(c, s->url, NULL, s->pb)) < 0)
1943 return ret;
1955 if ((ret = parse_playlist(c, pls->url, pls, NULL)) < 0) {
1956 av_log(s, AV_LOG_WARNING, "parse_playlist error %s [%s]\n", av_err2str(ret), pls->url);
1960 return ret;
2063 if ((ret = avio_read(&pls->pb.pub, buf, HLS_MAX_ID3_TAGS_DATA_LEN)) < 0) {
2065 if (ret != AVERROR_EOF) {
2068 return ret;
2071 ret = 0;
2104 ret = av_probe_input_buffer(&pls->pb.pub, &in_fmt, url, NULL, 0, 0);
2105 if (ret < 0) {
2114 return ret;
2138 if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
2139 return ret;
2143 ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, &options);
2145 if (ret < 0)
2146 return ret;
2167 ret = ff_hls_senc_parse_audio_setup_info(pls->ctx->streams[0], &pls->audio_setup_info);
2169 ret = avformat_find_stream_info(pls->ctx, NULL);
2171 if (ret < 0)
2172 return ret;
2178 ret = update_streams_from_subdemuxer(s, pls);
2179 if (ret < 0)
2180 return ret;
2284 int ret, i, minplaylist = -1;
2298 ret = av_read_frame(pls->ctx, pls->pkt);
2299 if (ret < 0) {
2300 if (!avio_feof(&pls->pb.pub) && ret != AVERROR_EOF)
2301 return ret;
2371 ret = update_streams_from_subdemuxer(s, pls);
2372 if (ret < 0) {
2374 return ret;
2415 ret = set_stream_info_from_input_stream(st, pls, ist);
2416 if (ret < 0) {
2417 return ret;