libav: disable logging

This commit is contained in:
stefanodvx 2025-04-18 01:10:59 +02:00
parent 88e9bef29e
commit ea1451cb97
3 changed files with 6 additions and 0 deletions

View file

@ -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