summaryrefslogtreecommitdiffstats
path: root/stream/stream_slice.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_slice.c')
-rw-r--r--stream/stream_slice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream/stream_slice.c b/stream/stream_slice.c
index c0dbeeb2af..503bad62d4 100644
--- a/stream/stream_slice.c
+++ b/stream/stream_slice.c
@@ -19,7 +19,6 @@
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
-#include <unistd.h>
#include "common/common.h"
#include "options/m_option.h"
@@ -61,7 +60,7 @@ static int64_t get_size(struct stream *s)
if (size <= 0)
return size;
if (size <= p->slice_start)
- return 0;
+ return 0;
if (p->slice_max_end)
size = MPMIN(size, p->slice_max_end);
return size - p->slice_start;
@@ -123,7 +122,7 @@ static int parse_slice_range(stream_t *stream)
}
if (max_end_is_offset)
- p->slice_max_end += p->slice_start;
+ p->slice_max_end += p->slice_start;
if (p->slice_max_end && p->slice_max_end < p->slice_start) {
MP_ERR(stream, "The byte range end (%"PRId64") can't be smaller than the start (%"PRId64"): '%s'\n",