Skip to content
Snippets Groups Projects
Commit 223f3dff authored by Steven Liu's avatar Steven Liu
Browse files

avformat/hls: remove redundant code

parent 3c6f7015
No related branches found
No related tags found
No related merge requests found
......@@ -919,9 +919,6 @@ static int read_from_url(struct playlist *pls, struct segment *seg,
buf_size = FFMIN(buf_size, seg->size - pls->cur_seg_offset);
ret = avio_read(pls->input, buf, buf_size);
if (ret != buf_size)
av_log(NULL, AV_LOG_ERROR, "Could not read complete segment.\n");
if (ret > 0)
pls->cur_seg_offset += ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment