node build fixed
This commit is contained in:
19
seanime-2.9.10/internal/mediastream/transcoder/settings.go
Normal file
19
seanime-2.9.10/internal/mediastream/transcoder/settings.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package transcoder
|
||||
|
||||
import "os"
|
||||
|
||||
func GetEnvOr(env string, def string) string {
|
||||
out := os.Getenv(env)
|
||||
if out == "" {
|
||||
return def
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
type HwAccelSettings struct {
|
||||
Name string `json:"name"`
|
||||
DecodeFlags []string `json:"decodeFlags"`
|
||||
EncodeFlags []string `json:"encodeFlags"`
|
||||
ScaleFilter string `json:"scaleFilter"`
|
||||
WithForcedIdr bool `json:"removeForcedIdr"`
|
||||
}
|
||||
Reference in New Issue
Block a user