Update transcoder interface, remove unused code.

This commit is contained in:
Josh Allmann
2018-02-28 21:24:29 -08:00
parent 9ab5d2b3be
commit 9c9c192ebc
2 changed files with 1 additions and 12 deletions
-11
View File
@@ -3,11 +3,9 @@ package transcoder
import (
"fmt"
"io/ioutil"
"math/rand"
"os"
"path"
"path/filepath"
"time"
"github.com/golang/glog"
"github.com/livepeer/lpms/ffmpeg"
@@ -45,12 +43,3 @@ func (t *FFMpegSegmentTranscoder) Transcode(fname string) ([][]byte, error) {
return dout, nil
}
func randName() string {
rand.Seed(time.Now().UnixNano())
x := make([]byte, 10, 10)
for i := 0; i < len(x); i++ {
x[i] = byte(rand.Uint32())
}
return fmt.Sprintf("%x.ts", x)
}
+1 -1
View File
@@ -1,5 +1,5 @@
package transcoder
type Transcoder interface {
Transcode(d []byte) ([][]byte, error)
Transcode(fname string) ([][]byte, error)
}