x264: add build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2023-08-10 19:23:26 +02:00
parent def693a23c
commit e8ca9b7064
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 8 additions and 0 deletions

View file

@ -38,6 +38,10 @@ func Version() string {
return x264Version
}
func Build() int {
return int(C.X264_BUILD)
}
const (
LogLevelNone int = -1
LogLevelError int = 0

View file

@ -15,6 +15,10 @@ func TestVersion(t *testing.T) {
t.Logf("libx264 version: %s", Version())
}
func TestBuild(t *testing.T) {
t.Logf("libx264 version: %d", Build())
}
func testEncode(sample testdata.TestSample, t *testing.T) {
reader, err := sample.Open(t)
if err != nil {