summaryrefslogtreecommitdiff
path: root/ffmpeg.go
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.go')
-rw-r--r--ffmpeg.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/ffmpeg.go b/ffmpeg.go
index 77a2195..329ae01 100644
--- a/ffmpeg.go
+++ b/ffmpeg.go
@@ -6,7 +6,7 @@ import (
ffmpeg "github.com/u2takey/ffmpeg-go"
)
-func cutoutClipAndTranscode(ut *Utterance) {
+func cutoutClipAndTranscode(ut *Utterance) error {
err := ffmpeg.Input(ut.FD.AudioPath,
ffmpeg.KwArgs{
"ss": ut.LeftTime,
@@ -17,8 +17,5 @@ func cutoutClipAndTranscode(ut *Utterance) {
"metadata": fmt.Sprintf(`source="%s"`, ut.FD.VttPath),
}).OverWriteOutput().ErrorToStdOut().Run()
- if err != nil {
- panic(err)
- }
- return
+ return err
}