This commit is contained in:
parent
def693a23c
commit
e8ca9b7064
|
@ -38,6 +38,10 @@ func Version() string {
|
||||||
return x264Version
|
return x264Version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Build() int {
|
||||||
|
return int(C.X264_BUILD)
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LogLevelNone int = -1
|
LogLevelNone int = -1
|
||||||
LogLevelError int = 0
|
LogLevelError int = 0
|
||||||
|
|
|
@ -15,6 +15,10 @@ func TestVersion(t *testing.T) {
|
||||||
t.Logf("libx264 version: %s", Version())
|
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) {
|
func testEncode(sample testdata.TestSample, t *testing.T) {
|
||||||
reader, err := sample.Open(t)
|
reader, err := sample.Open(t)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue