We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5afbf6 commit 578e932Copy full SHA for 578e932
pkg/media/opus/opus.go
@@ -104,6 +104,9 @@ func (d *decoder) SampleRate() int {
104
}
105
106
func (d *decoder) WriteSample(in Sample) error {
107
+ if len(in) == 0 {
108
+ return nil
109
+ }
110
n, err := d.dec.Decode(in, d.buf)
111
if err != nil {
112
// Some workflows (concatenating opus files) can cause a suprious decoding error, so ignore small amount of corruption errors
0 commit comments