Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
ugjka committed Aug 12, 2023
1 parent 33076a6 commit 4bcb336
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions 25mb.video/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,6 @@ func main() {

file := flag.Args()[0]

if *size == 25 {
// default size - check actual filesize
finfo, err := os.Stat(file)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
asize := float64(finfo.Size()) / 1024 / 1024
if asize < *size {
// we don't need a bigger file
*size = float64(int64(asize))
}
}

// get video lenght in seconds
probe := exec.Command(
"ffprobe",
Expand Down

0 comments on commit 4bcb336

Please sign in to comment.