mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
m3u8: Fix off-by-one in the download range end
This commit is contained in:
parent
73b188cfb9
commit
c9bb878fe5
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ gst_m3u8_client_get_next_fragment (GstM3U8Client * client,
|
|||
if (range_start)
|
||||
*range_start = file->offset;
|
||||
if (range_end)
|
||||
*range_end = file->size != -1 ? file->offset + file->size : -1;
|
||||
*range_end = file->size != -1 ? file->offset + file->size - 1 : -1;
|
||||
if (key)
|
||||
*key = file->key;
|
||||
if (iv)
|
||||
|
|
Loading…
Reference in a new issue