Cleanup
This commit is contained in:
parent
25fa3dd387
commit
2c194879df
2 changed files with 6 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue