diff --git a/go.mod b/go.mod index ce1232c..45c821c 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/asticode/go-astits v1.13.0 - github.com/bluenviron/mediacommon v1.12.0 + github.com/bluenviron/mediacommon v1.12.1 github.com/stretchr/testify v1.9.0 ) diff --git a/go.sum b/go.sum index 631db4e..0b45460 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflx github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= github.com/asticode/go-astits v1.13.0 h1:XOgkaadfZODnyZRR5Y0/DWkA9vrkLLPLeeOvDwfKZ1c= github.com/asticode/go-astits v1.13.0/go.mod h1:QSHmknZ51pf6KJdHKZHJTLlMegIrhega3LPWz3ND/iI= -github.com/bluenviron/mediacommon v1.12.0 h1:j6L3Ikn+dyJvvG3rbm0gjbsUJ11fqh5nIlhNgYAjEx8= -github.com/bluenviron/mediacommon v1.12.0/go.mod h1:HDyW2CzjvhYJXtdxstdFPio3G0qSocPhqkhUt/qffec= +github.com/bluenviron/mediacommon v1.12.1 h1:sgDJaKV6OXrPCSO0KPp9zi/pwNWtKHenn5/dvjtY+Tg= +github.com/bluenviron/mediacommon v1.12.1/go.mod h1:HDyW2CzjvhYJXtdxstdFPio3G0qSocPhqkhUt/qffec= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/muxer_test.go b/muxer_test.go index dee716e..f5e6017 100644 --- a/muxer_test.go +++ b/muxer_test.go @@ -799,13 +799,13 @@ func TestMuxerDynamicParams(t *testing.T) { err = m.WriteH264(testTime, 3*time.Second, [][]byte{ testSPS2, - {5}, // IDR + {0x65, 0x88, 0x84, 0x00, 0x33, 0xff}, // IDR {2}, }) require.NoError(t, err) err = m.WriteH264(testTime, 5*time.Second, [][]byte{ - {5}, // IDR + {0x65, 0x88, 0x84, 0x00, 0x33, 0xff}, // IDR }) require.NoError(t, err) @@ -815,7 +815,7 @@ func TestMuxerDynamicParams(t *testing.T) { "#EXT-X-VERSION:9\n"+ "#EXT-X-INDEPENDENT-SEGMENTS\n"+ "\n"+ - "#EXT-X-STREAM-INF:BANDWIDTH=912,AVERAGE-BANDWIDTH=742,"+ + "#EXT-X-STREAM-INF:BANDWIDTH=912,AVERAGE-BANDWIDTH=752,"+ "CODECS=\"avc1.64001f\",RESOLUTION=1280x720,FRAME-RATE=30.000\n"+ "stream.m3u8\n", string(bu))