diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2020-05-06 14:51:22 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2020-05-07 19:33:35 +0800 |
commit | 3523df947a64c3a102960c753e81d9d04166e6e5 (patch) | |
tree | f6d335e7b60731abc74e4038fcb62c1ef9a7dbed /libavformat/dashdec.c | |
parent | 96e5e6abb9851d7a26ba21703955d5826ac857c0 (diff) | |
download | ffmpeg-3523df947a64c3a102960c753e81d9d04166e6e5.tar.gz |
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>
Diffstat (limited to 'libavformat/dashdec.c')
-rw-r--r-- | libavformat/dashdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index bde4b0846d..ec2aadcee3 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -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; |