mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00

A zero input_length here would be caused by a decoder error in NetEqImpl::Decode(). Looking at the code in GetAudioInternal() which calls Decode() it appears that the intention is to continue processing even if no new audio data is decoded. Based on this, it seems safest to just skip muting in SignalScaling if the input_length is zero. The other potential cause of a division by zero here is if fs_mult_ is zero which should not normally happen. But there's no harm in checking for that as well. MozReview-Commit-ID: J0pd2wbjeZl --HG-- extra : rebase_source : 5206abd1f85986d395a7eead148cb06d1d050842