Prechádzať zdrojové kódy

touchup on ffmpeg module agi

Toby Chui 1 rok pred
rodič
commit
252c19e9de
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      mod/agi/static/ffmpegutil/ffmpegutil.go

+ 2 - 1
mod/agi/static/ffmpegutil/ffmpegutil.go

@@ -2,6 +2,7 @@ package ffmpegutil
 
 import (
 	"fmt"
+	"net/http"
 	"os"
 	"os/exec"
 	"path/filepath"
@@ -27,7 +28,7 @@ set to 512, then the output will be 512 * 1024
 
 Set compression to 0 if resizing / compression is not required
 */
-func FFmpeg_conv(input string, output string, compression int) error {
+func FFmpeg_conv(input string, output string, compression int, w *http.ResponseWriter) error {
 	var cmd *exec.Cmd
 
 	switch {