Lines Matching refs:ret

186     int ret = 0;
193 ret = sscanf(datetime, "%d-%d-%dT%d:%d:%fZ", &year, &month, &day, &hour, &minute, &second);
195 if (ret != 6) {
408 int ret;
446 ret = avio_open2(pb, url, AVIO_FLAG_READ, c->interrupt_callback, &tmp);
447 if (ret >= 0) {
465 return ret;
835 int32_t ret = 0;
896 ret = resolve_content_path(s, url, &c->max_url_size, baseurl_nodes, 4);
900 if (ret == AVERROR(ENOMEM) || ret == 0)
986 ret = parse_manifest_segmenttimeline(s, rep, fragment_timeline_node);
987 if (ret < 0)
996 ret = av_dynarray_add_nofree(&rep->fragments, &rep->n_fragments, seg);
997 if (ret < 0) {
1035 ret = parse_manifest_segmenturlnode(s, rep, fragmenturl_node,
1038 if (ret < 0)
1049 ret = parse_manifest_segmenttimeline(s, rep, fragment_timeline_node);
1050 if (ret < 0)
1068 ret = av_parse_video_rate(&rep->framerate, rep_framerate_val);
1069 if (ret < 0)
1077 ret = av_dynarray_add_nofree(&c->videos, &c->n_videos, rep);
1080 ret = av_dynarray_add_nofree(&c->audios, &c->n_audios, rep);
1083 ret = av_dynarray_add_nofree(&c->subtitles, &c->n_subtitles, rep);
1086 if (ret < 0)
1093 return ret;
1095 ret = AVERROR(ENOMEM);
1121 int ret = 0;
1130 ret = parse_manifest_adaptationset_attr(s, adaptionset_node);
1131 if (ret < 0)
1132 return ret;
1147 ret = parse_manifest_representation(s, url, node,
1158 if (ret < 0)
1167 return ret;
1202 int ret = 0;
1225 ret = avio_open2(&in, url, AVIO_FLAG_READ, c->interrupt_callback, &opts);
1227 if (ret < 0)
1228 return ret;
1236 if ((ret = avio_read_to_bprint(in, &buf, SIZE_MAX)) < 0 ||
1239 if (ret == 0)
1240 ret = AVERROR_INVALIDDATA;
1249 ret = AVERROR_INVALIDDATA;
1256 ret = AVERROR_INVALIDDATA;
1264 ret = AVERROR_INVALIDDATA;
1342 ret = AVERROR_INVALIDDATA;
1370 return ret;
1485 int ret = 0, i;
1503 ret = parse_manifest(s, s->url, NULL);
1504 if (ret)
1579 return ret;
1668 int ret;
1674 ret = avio_read(pls->input, buf, buf_size);
1675 if (ret > 0)
1676 pls->cur_seg_offset += ret;
1678 return ret;
1685 int ret = 0;
1689 ret = AVERROR(ENOMEM);
1703 ret = open_url(pls->parent, &pls->input, url, &c->avio_opts, opts, NULL);
1710 return ret;
1719 int ret;
1724 ret = open_input(c, pls, pls->init_section);
1725 if (ret < 0) {
1728 return ret;
1746 ret = read_from_url(pls, pls->init_section, pls->init_sec_buf,
1750 if (ret < 0)
1751 return ret;
1753 pls->init_sec_data_len = ret;
1771 int ret = 0;
1780 ret = AVERROR_EOF;
1785 ret = update_init_section(v);
1786 if (ret)
1789 ret = open_input(c, v, v->cur_seg);
1790 if (ret < 0) {
1792 ret = AVERROR_EXIT;
1806 ret = copy_size;
1815 ret = AVERROR_EOF;
1818 ret = read_from_url(v, v->cur_seg, buf, buf_size);
1819 if (ret > 0)
1829 return ret;
1857 int ret = 0, i;
1864 ret = AVERROR_EXIT;
1869 ret = AVERROR(ENOMEM);
1875 ret = AVERROR(ENOMEM);
1884 if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
1891 ret = av_probe_input_buffer(&pls->pb.pub, &in_fmt, "", NULL, 0, 0);
1892 if (ret < 0) {
1906 ret = avformat_open_input(&pls->ctx, "", in_fmt, &in_fmt_opts); //pls->init_section->url
1908 if (ret < 0)
1917 ret = avformat_find_stream_info(pls->ctx, NULL);
1918 if (ret < 0)
1923 return ret;
1928 int ret = 0;
1938 ret = reopen_demux_for_component(s, pls);
1939 if (ret < 0) {
1946 ret = AVERROR(ENOMEM);
1970 return ret;
2028 int ret = 0;
2034 if ((ret = ffio_copy_url_options(s->pb, &c->avio_opts)) < 0)
2035 return ret;
2037 if ((ret = parse_manifest(s, s->url, s->pb)) < 0)
2038 return ret;
2055 ret = copy_init_section(rep, c->videos[0]);
2056 if (ret < 0)
2057 return ret;
2059 ret = open_demux_for_component(s, rep);
2061 if (ret)
2062 return ret;
2073 ret = copy_init_section(rep, c->audios[0]);
2074 if (ret < 0)
2075 return ret;
2077 ret = open_demux_for_component(s, rep);
2079 if (ret)
2080 return ret;
2091 ret = copy_init_section(rep, c->subtitles[0]);
2092 if (ret < 0)
2093 return ret;
2095 ret = open_demux_for_component(s, rep);
2097 if (ret)
2098 return ret;
2167 int ret = 0, i;
2208 while (!ff_check_interrupt(c->interrupt_callback) && !ret) {
2209 ret = av_read_frame(cur->ctx, pkt);
2210 if (ret >= 0) {
2220 ret = reopen_demux_for_component(s, cur);
2240 int ret = 0;
2297 ret = dry_run ? 0 : reopen_demux_for_component(s, pls);
2299 return ret;
2304 int ret = 0, i;
2315 if (!ret)
2316 ret = dash_seek(s, c->videos[i], seek_pos_msec, flags, !c->videos[i]->ctx);
2319 if (!ret)
2320 ret = dash_seek(s, c->audios[i], seek_pos_msec, flags, !c->audios[i]->ctx);
2323 if (!ret)
2324 ret = dash_seek(s, c->subtitles[i], seek_pos_msec, flags, !c->subtitles[i]->ctx);
2327 return ret;