Skip to content

Commit

Permalink
test passed
Browse files Browse the repository at this point in the history
  • Loading branch information
oldma3095 committed Dec 19, 2024
1 parent eb4cba6 commit 882e8d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions codec_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ func TestCodecContext(t *testing.T) {
cc4.SetWidth(16)
cc4.SetExtraHardwareFrames(4)
cc4.SetMaxBFrames(1)
cc4.SetRateControlMaxRate(int64(1_5000_000))
cc4.SetRateControlMinRate(int64(1_5000_000))
cc4.SetRateControlBufferSize(1_5000_000)
cc4.SetRateControlMaxRate(1_500_000)
cc4.SetRateControlMinRate(1_500_000)
cc4.SetRateControlBufferSize(1_500_000)
require.Equal(t, int64(1), cc4.BitRate())
require.True(t, cc4.ChannelLayout().Equal(ChannelLayout21))
require.Equal(t, NewCodecContextFlags(4), cc4.Flags())
Expand All @@ -126,9 +126,9 @@ func TestCodecContext(t *testing.T) {
require.Equal(t, 16, cc4.Width())
require.Equal(t, 4, cc4.ExtraHardwareFrames())
require.Equal(t, 1, cc4.MaxBFrames())
require.Equal(t, 1_5000_000, cc4.RateControlMaxRate())
require.Equal(t, 1_5000_000, cc4.RateControlMinRate())
require.Equal(t, 1_5000_000, cc4.RateControlBufferSize())
require.Equal(t, int64(1_500_000), cc4.RateControlMaxRate())
require.Equal(t, int64(1_500_000), cc4.RateControlMinRate())
require.Equal(t, 1_500_000, cc4.RateControlBufferSize())

cc5 := AllocCodecContext(nil)
require.NotNil(t, cc5)
Expand Down

0 comments on commit 882e8d8

Please sign in to comment.