Skip to content

Commit 35a34fe

Browse files
authoredJun 23, 2024
Merge pull request #20 from mutablelogic/ffmpeg61
Updated tests
2 parents 45ea27c + 051e2d4 commit 35a34fe

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed
 

‎go.mod

-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ require (
88
github.com/alecthomas/kong v0.9.0
99
github.com/djthorpe/go-errors v1.0.3
1010
github.com/djthorpe/go-tablewriter v0.0.8
11-
github.com/hashicorp/go-multierror v1.1.1
1211
github.com/stretchr/testify v1.9.0
1312
)
1413

1514
require (
1615
github.com/davecgh/go-spew v1.1.1 // indirect
17-
github.com/hashicorp/errwrap v1.1.0 // indirect
1816
github.com/mattn/go-runewidth v0.0.15 // indirect
1917
github.com/pmezard/go-difflib v1.0.0 // indirect
2018
github.com/rivo/uniseg v0.4.7 // indirect

‎pkg/chromaprint/fingerprint_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
const (
1515
// Test data
16-
testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le"
16+
testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le.sw"
1717
)
1818

1919
func Test_fingerprint_000(t *testing.T) {
@@ -33,7 +33,9 @@ func Test_fingerprint_002(t *testing.T) {
3333
assert.NotNil(fingerprint)
3434

3535
r, err := os.Open(testData1)
36-
assert.NoError(err)
36+
if !assert.NoError(err) {
37+
t.SkipNow()
38+
}
3739
defer r.Close()
3840

3941
buf := make([]int16, 1024)

‎sys/ffmpeg61/avcodec_parameters.go

-5
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,3 @@ func (ctx *AVCodecParameters) Width() int {
132132
func (ctx *AVCodecParameters) Height() int {
133133
return int(ctx.height)
134134
}
135-
136-
// Video
137-
func (ctx *AVCodecParameters) Framerate() AVRational {
138-
return AVRational(ctx.framerate)
139-
}

0 commit comments

Comments
 (0)