bump golangci-lint (#784)

This commit is contained in:
Alessandro Ros
2025-05-23 14:51:33 +02:00
committed by GitHub
parent 2694ed941f
commit b1804d77e8
72 changed files with 289 additions and 211 deletions

View File

@@ -45,13 +45,13 @@ func (e *mpegtsMuxer) initialize() error {
// close closes all the mpegtsMuxer resources.
func (e *mpegtsMuxer) close() {
e.b.Flush()
e.b.Flush() //nolint:errcheck
e.f.Close()
}
// writeH264 writes a H264 access unit into MPEG-TS.
func (e *mpegtsMuxer) writeH264(au [][]byte, pts int64) error {
var filteredAU [][]byte
var filteredAU [][]byte //nolint:prealloc
nonIDRPresent := false
idrPresent := false
@@ -96,7 +96,8 @@ func (e *mpegtsMuxer) writeH264(au [][]byte, pts int64) error {
if !idrPresent {
return nil
}
e.dtsExtractor = h264.NewDTSExtractor()
e.dtsExtractor = &h264.DTSExtractor{}
e.dtsExtractor.Initialize()
}
dts, err := e.dtsExtractor.Extract(au, pts)