diff --git a/program.go b/program.go index e8ff9c4..eb676f2 100644 --- a/program.go +++ b/program.go @@ -66,22 +66,6 @@ func (p *Program) SetDiscard(d Discard) { p.c.discard = int32(d) } -// https://ffmpeg.org/doxygen/7.0/structAVProgram.html#a7967d41af4812ed61a28762e988c7a02 -func (p *Program) StreamIndex() *uint { - if p.c.stream_index == nil { - return nil - } - u := uint(C.uint(*p.c.stream_index)) - return &u -} - -// https://ffmpeg.org/doxygen/7.0/structAVProgram.html#a7967d41af4812ed61a28762e988c7a02 -func (p *Program) SetStreamIndex(n uint) { - if p.c.stream_index != nil { - *p.c.stream_index = C.uint(n) - } -} - // https://ffmpeg.org/doxygen/7.0/structAVProgram.html#ae9dab38d4694e3da9cba0f882f4e43d3 func (p *Program) Metadata() *Dictionary { return newDictionaryFromC(p.c.metadata) diff --git a/program_test.go b/program_test.go index db8ede3..9445e7d 100644 --- a/program_test.go +++ b/program_test.go @@ -33,14 +33,8 @@ func TestProgram(t *testing.T) { s := fc.NewStream(nil) s.SetID(2) require.Equal(t, 0, p.NbStreams()) - require.Nil(t, p.StreamIndex(), nil) p.AddStream(s) require.Equal(t, 1, p.NbStreams()) - require.Equal(t, uint(0), *p.StreamIndex()) - var streamIndex uint = 1 - p.SetStreamIndex(streamIndex) - require.Equal(t, streamIndex, *p.StreamIndex()) - s.SetIndex(int(streamIndex)) ss := p.Streams() require.Equal(t, 1, len(ss)) require.Equal(t, s.ID(), ss[0].ID())