Commit 3523df94 authored by Steven Liu's avatar Steven Liu

avformat/dashdec: compute the segment size use current pos minus offset plus one

because the offset should use one byte
Reviewed-by: 's avatarZhao Jun <barryjzhao@tencent.com>
Reported-by: 's avatarZhao Jun <barryjzhao@tencent.com>
Signed-off-by: 's avatarSteven Liu <liuqi05@kuaishou.com>
parent 96e5e6ab
......@@ -592,7 +592,7 @@ static struct fragment * get_Fragment(char *range)
char *str_end_offset;
char *str_offset = av_strtok(range, "-", &str_end_offset);
seg->url_offset = strtoll(str_offset, NULL, 10);
seg->size = strtoll(str_end_offset, NULL, 10) - seg->url_offset;
seg->size = strtoll(str_end_offset, NULL, 10) - seg->url_offset + 1;
}
return seg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment