You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I use the library in my streaming app and I encountered a potential issue, at some point very rarely my app was crashing so I started to investigating this problem and I found out it crashes here
Hi, I use the library in my streaming app and I encountered a potential issue, at some point very rarely my app was crashing so I started to investigating this problem and I found out it crashes here
https://github.com/Dario-Gasquez/swift-opus/blob/b763c399014eb6260a9bfe2f843677a4b4fd435b/Sources/Opus/Opus.Decoder.swift#L59
because the output variable was 'none' and the reason is that sample count returned 0 before ->
let sampleCount = opus_decoder_get_nb_samples(decoder, input.baseAddress!, Int32($0.count))
There was a pull request which added a check for this
#9 (review)
But this check should it not rather be
as otherwise there will be a crash?
The text was updated successfully, but these errors were encountered: