Cleanup in utils
This commit is contained in:
parent
34c0e44380
commit
32f30850c4
4 changed files with 8 additions and 12 deletions
|
@ -98,7 +98,7 @@ func (writer *VideoWriter) AudioCodec() string {
|
|||
// Creates a new VideoWriter struct with default values from the Options struct.
|
||||
func NewVideoWriter(filename string, width, height int, options *Options) (*VideoWriter, error) {
|
||||
// Check if ffmpeg is installed on the users machine.
|
||||
if err := checkExists("ffmpeg"); err != nil {
|
||||
if err := installed("ffmpeg"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue