mirror of https://bitbucket.org/ausocean/av.git
flv: added back dans NewEncoder write fail code
This commit is contained in:
parent
61c1ff6ee4
commit
27081e1ea9
|
@ -73,6 +73,9 @@ func NewEncoder(dst io.Writer, audio, video bool, fps int) (*Encoder, error) {
|
|||
video: video,
|
||||
}
|
||||
_, err := dst.Write(e.HeaderBytes())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &e, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue