Skip to content

Commit

Permalink
If frame-width is set to 0, use the actual width of the video file
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrySlawniak committed Sep 25, 2018
1 parent 0afe3f9 commit d05479f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thumbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ import (
func generateThumbnails(vid *Video, numFrames int) {
binary := GetFFMpegBinary()

if *frameWidth == 0 {
*frameWidth = vid.Width
}

for i := 0; i < numFrames; i++ {
cmd := exec.Command(
binary, "-n",
Expand Down

0 comments on commit d05479f

Please sign in to comment.