Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eth/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func fromPerc(perc float64, multiplier *big.Float) *big.Int {
}

func ToBaseAmount(v string, maxDecimals int) (*big.Int, error) {
// check that string is a float represented as a string with "." as seperator
// check that string is a float represented as a string with "." as separator
ok, err := regexp.MatchString("^[-+]?[0-9]*.?[0-9]+$", v)
if !ok || err != nil {
return nil, fmt.Errorf("submitted value %v is not a valid float", v)
Expand Down
4 changes: 2 additions & 2 deletions eth/watchers/senderwatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ func TestSenderWatcher_ClaimedReserve(t *testing.T) {
sw, err := NewSenderWatcher(stubTicketBrokerAddr, watcher, lpEth, tw)
require.Nil(err)

// if not existant on map; make RPC call and init the map
// if not existent on map; make RPC call and init the map
_, ok := sw.claimedReserve[stubSender]
require.False(ok)
lpEth.ClaimedAmount = big.NewInt(5000)
claimed, err := sw.ClaimedReserve(stubSender, stubClaimant)
assert.Nil(err)
assert.Zero(lpEth.ClaimedAmount.Cmp(claimed))

// if existant on map return the map value
// if existent on map return the map value
sw.claimedReserve[stubSender] = big.NewInt(10000)
claimed, err = sw.ClaimedReserve(stubSender, stubClaimant)
assert.Nil(err)
Expand Down
2 changes: 1 addition & 1 deletion media/whip_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func getUDPListenerAddr() (*net.UDPAddr, error) {
}

func genParams() (*webrtc.MediaEngine, func(*webrtc.API)) {
// Taken from Pion default codecs, but limited to to Opus and H.264
// Taken from Pion default codecs, but limited to Opus and H.264

m := &webrtc.MediaEngine{}

Expand Down
2 changes: 1 addition & 1 deletion server/mediaserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ func (s *LivepeerServer) streamMP4(w http.ResponseWriter, r *http.Request, jpl *
Profile: ffmpeg.VideoProfile{Format: ffmpeg.FormatNone},
Muxer: ffmpeg.ComponentOptions{
Name: "mp4",
// main option is 'frag_keyframe' which tells ffmpeg to create fragmented MP4 (which we need to be able to stream generatd file)
// main option is 'frag_keyframe' which tells ffmpeg to create fragmented MP4 (which we need to be able to stream generated file)
// other options is not mandatory but they will slightly improve generated MP4 file
Opts: map[string]string{"movflags": "frag_keyframe+negative_cts_offsets+omit_tfhd_offset+disable_chpl+default_base_moof"},
},
Expand Down
2 changes: 1 addition & 1 deletion server/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ func TestPush_SetVideoProfileFormats(t *testing.T) {
hookCalled := 0
// Sanity check that default profile with webhook is copied
// Checking since there is special handling for the default set of profiles
// within the webhook hander.
// within the webhook handler.
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
auth := authWebhookResponse{ManifestID: "intweb"}
val, err := json.Marshal(auth)
Expand Down