From 882e8d8608985b587e45c0dde9263178d85dcc24 Mon Sep 17 00:00:00 2001 From: ma3315865 Date: Thu, 19 Dec 2024 19:05:12 +0800 Subject: [PATCH] test passed --- codec_context_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/codec_context_test.go b/codec_context_test.go index 69ab042..1ea6b9f 100644 --- a/codec_context_test.go +++ b/codec_context_test.go @@ -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()) @@ -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)