docs: improve documentations
This commit is contained in:
parent
ed2497cbf1
commit
2cbefdee7c
6 changed files with 29 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import "C"
|
|||
|
||||
type avError int
|
||||
|
||||
// AV Error enum
|
||||
const (
|
||||
ErrNoMem = avError(-C.ENOMEM)
|
||||
ErrEOF = avError(C.AVERROR_EOF)
|
||||
|
|
@ -31,6 +32,7 @@ func (e avError) errorString() string {
|
|||
}
|
||||
}
|
||||
|
||||
// Error implements error interface
|
||||
func (e avError) Error() string {
|
||||
return "ffmpeg: " + e.errorString()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue