Skip to content

Commit

Permalink
Merge pull request #20 from mutablelogic/ffmpeg61
Browse files Browse the repository at this point in the history
Updated tests
  • Loading branch information
djthorpe committed Jun 23, 2024
2 parents 45ea27c + 051e2d4 commit 35a34fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions pkg/chromaprint/fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions sys/ffmpeg61/avcodec_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 35a34fe

Please sign in to comment.