diff --git a/go.mod b/go.mod index f3b5f32..1b6aaa5 100755 --- a/go.mod +++ b/go.mod @@ -8,13 +8,11 @@ require ( github.com/alecthomas/kong v0.9.0 github.com/djthorpe/go-errors v1.0.3 github.com/djthorpe/go-tablewriter v0.0.8 - github.com/hashicorp/go-multierror v1.1.1 github.com/stretchr/testify v1.9.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect diff --git a/pkg/chromaprint/fingerprint_test.go b/pkg/chromaprint/fingerprint_test.go index 2b4481d..d32d51b 100644 --- a/pkg/chromaprint/fingerprint_test.go +++ b/pkg/chromaprint/fingerprint_test.go @@ -13,7 +13,7 @@ import ( const ( // Test data - testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le" + testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le.sw" ) func Test_fingerprint_000(t *testing.T) { @@ -33,7 +33,9 @@ func Test_fingerprint_002(t *testing.T) { assert.NotNil(fingerprint) r, err := os.Open(testData1) - assert.NoError(err) + if !assert.NoError(err) { + t.SkipNow() + } defer r.Close() buf := make([]int16, 1024) diff --git a/sys/ffmpeg61/avcodec_parameters.go b/sys/ffmpeg61/avcodec_parameters.go index 01c1d3a..20a6b74 100644 --- a/sys/ffmpeg61/avcodec_parameters.go +++ b/sys/ffmpeg61/avcodec_parameters.go @@ -132,8 +132,3 @@ func (ctx *AVCodecParameters) Width() int { func (ctx *AVCodecParameters) Height() int { return int(ctx.height) } - -// Video -func (ctx *AVCodecParameters) Framerate() AVRational { - return AVRational(ctx.framerate) -}