Update CI configs to v0.7.2

Update lint scripts and CI configs.
This commit is contained in:
Pion
2022-04-27 03:28:46 +00:00
committed by Sean DuBois
parent dc31439c93
commit c1467e4871
28 changed files with 126 additions and 77 deletions

View File

@@ -1,8 +1,10 @@
//go:build !js
// +build !js
package main
import (
"errors"
"fmt"
"io"
"os"
@@ -217,16 +219,17 @@ func main() {
frame, _, err = ivf.ParseNextFrame()
}
switch err {
switch {
// If we have reached the end of the file start again
case errors.Is(err, io.EOF):
ivf.ResetReader(setReaderFile(qualityLevels[currentQuality].fileName))
// No error write the video frame
case nil:
case err == nil:
currentTimestamp = frameHeader.Timestamp
if err = videoTrack.WriteSample(media.Sample{Data: frame, Duration: time.Second}); err != nil {
panic(err)
}
// If we have reached the end of the file start again
case io.EOF:
ivf.ResetReader(setReaderFile(qualityLevels[currentQuality].fileName))
// Error besides io.EOF that we dont know how to handle
default:
panic(err)