Skip to content

Commit e78b349

Browse files
committed
Fix ebml-go lint errors
Move to non-deprecated APIs
1 parent 7e84840 commit e78b349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

save-to-webm/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func main() {
3232
}
3333

3434
type webmSaver struct {
35-
audioWriter, videoWriter *webm.FrameWriter
35+
audioWriter, videoWriter webm.BlockWriteCloser
3636
audioBuilder, videoBuilder *samplebuilder.SampleBuilder
3737
audioTimestamp, videoTimestamp uint32
3838
}
@@ -110,7 +110,7 @@ func (s *webmSaver) InitWriter(width, height int) {
110110
panic(err)
111111
}
112112

113-
ws, err := webm.NewSimpleWriter(w,
113+
ws, err := webm.NewSimpleBlockWriter(w,
114114
[]webm.TrackEntry{
115115
{
116116
Name: "Audio",

0 commit comments

Comments
 (0)