This commit is contained in:
Alex Eidt 2022-08-24 13:37:18 -07:00
parent 25fa3dd387
commit 2c194879df
2 changed files with 6 additions and 7 deletions

View file

@ -102,7 +102,7 @@ func NewVideoWriter(filename string, width, height int, options *Options) (*Vide
return nil, err
}
writer := VideoWriter{filename: filename}
writer := &VideoWriter{filename: filename}
if options == nil {
options = &Options{}
@ -180,7 +180,7 @@ func NewVideoWriter(filename string, width, height int, options *Options) (*Vide
}
}
return &writer, nil
return writer, nil
}
// Once the user calls Write() for the first time on a VideoWriter struct,