diff --git a/go_vod/manager.go b/go_vod/manager.go index b20a48a3..2e1aac0a 100644 --- a/go_vod/manager.go +++ b/go_vod/manager.go @@ -94,7 +94,7 @@ func NewManager(c *Config, path string, id string, close chan string) (*Manager, stream.width = int(math.Ceil(float64(lgDim) * float64(stream.height) / float64(smDim))) // remove invalid streams - if (stream.height > smDim || stream.width > lgDim) || // no upscaling; we're not AI + if (stream.height >= smDim || stream.width >= lgDim) || // no upscaling; we're not AI (float64(stream.bitrate) > float64(m.probe.BitRate)*0.8) || // no more than 80% of original bitrate (stream.height%2 != 0 || stream.width%2 != 0) { // no odd dimensions diff --git a/main.go b/main.go index f43ad6ad..fa676c00 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "github.com/pulsejet/go-vod/go_vod" ) -const VERSION = "0.1.21" +const VERSION = "0.1.22" func main() { // Build initial configuration