add missing defer close in examples (#925)

This commit is contained in:
Alessandro Ros
2025-10-21 18:04:55 +02:00
committed by GitHub
parent 2db67e7195
commit b104968d33
2 changed files with 2 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ func main() {
if err != nil {
panic(err)
}
defer mp4aEnc.close()
// setup MPEG-4 Audio -> RTP encoder
rtpEnc, err := forma.CreateEncoder()

View File

@@ -86,6 +86,7 @@ func main() {
if err != nil {
panic(err)
}
defer opusEnc.close()
// setup Opus -> RTP encoder
rtpEnc, err := forma.CreateEncoder()