MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / read_from_url

Function read_from_url

libavformat/dashdec.c:1707–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1705}
1706
1707static int read_from_url(struct representation *pls, struct fragment *seg,
1708 uint8_t *buf, int buf_size)
1709{
1710 int ret;
1711
1712 /* limit read if the fragment was only a part of a file */
1713 if (seg->size >= 0)
1714 buf_size = FFMIN(buf_size, pls->cur_seg_size - pls->cur_seg_offset);
1715
1716 ret = avio_read(pls->input, buf, buf_size);
1717 if (ret > 0)
1718 pls->cur_seg_offset += ret;
1719
1720 return ret;
1721}
1722
1723static int open_input(DASHContext *c, struct representation *pls, struct fragment *seg)
1724{

Callers 2

update_init_sectionFunction · 0.70
read_dataFunction · 0.70

Calls 1

avio_readFunction · 0.85

Tested by

no test coverage detected