From b9c1c766d68bfc48bb9cba7da5a0b98b7b83e782 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 20 Jan 2024 00:41:01 +0100 Subject: [PATCH] Fix one segment transcode --- transcoder/src/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcoder/src/stream.go b/transcoder/src/stream.go index aa766800..05fe1926 100644 --- a/transcoder/src/stream.go +++ b/transcoder/src/stream.go @@ -89,7 +89,7 @@ func (ts *Stream) run(start int32) error { ) var segments_str string - if end-start > 0 { + if end-start-1 > 0 { // We do not need the first value (start of the transcode) // nor the last one (end of the -to argument) // if we specify one of those, ffmpeg creates a really small segment and