libav: disable logging
This commit is contained in:
parent
88e9bef29e
commit
ea1451cb97
3 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,8 @@ package av
|
|||
import "github.com/asticode/go-astiav"
|
||||
|
||||
func GetVideoInfo(filePath string) (int64, int64, int64) {
|
||||
astiav.SetLogLevel(astiav.LogLevelQuiet)
|
||||
|
||||
formatCtx := astiav.AllocFormatContext()
|
||||
if formatCtx == nil {
|
||||
return 0, 0, 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue