mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/dashdec: compute the segment size use current pos minus offset plus one
because the offset should use one byte Reviewed-by: Zhao Jun <barryjzhao@tencent.com> Reported-by: Zhao Jun <barryjzhao@tencent.com> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
This commit is contained in:
parent
96e5e6abb9
commit
3523df947a
@ -592,7 +592,7 @@ static struct fragment * get_Fragment(char *range)
|
|||||||
char *str_end_offset;
|
char *str_end_offset;
|
||||||
char *str_offset = av_strtok(range, "-", &str_end_offset);
|
char *str_offset = av_strtok(range, "-", &str_end_offset);
|
||||||
seg->url_offset = strtoll(str_offset, NULL, 10);
|
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;
|
return seg;
|
||||||
|
Loading…
Reference in New Issue
Block a user