gecko-dev/media
Dan Minor 93e787c563 Bug 1414632 - Prevent division by zero in webrtc::Merge::SignalScaling; r=jesup
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
2017-11-08 12:39:53 -05:00
..
audioipc Bug 1409904 - Convert error! logging to warn! to avoid spurious stderr spamming from audioipc. r=kamidphish 2017-11-08 16:20:48 +13:00
cubeb-rs Bug 1391523 - P2: Remove cubeb build steps. r=kamidphish 2017-08-09 17:34:41 +10:00
ffvpx Merge inbound to mozilla-central r=merge a=merge 2017-11-08 12:51:09 +02:00
gmp-clearkey/0.1 Bug 1409670 - Skip decrypting request when receiving an unencrypted sample in Clearkey implementation. r=cpearce 2017-10-19 16:45:21 +08:00
kiss_fft
libaom Bug 1413734 - av1: fix build issues. r=kinetik 2017-11-01 15:49:14 -07:00
libav Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libcubeb Bug 1411866 - Update cubeb from upstream to cf5ddc5. r=padenot,kinetik 2017-10-26 10:41:49 +03:00
libjpeg Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libmkv Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libnestegg Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libogg Bug 1415446 - Update to libogg 1.3.3. r=kinetik 2017-11-08 08:49:05 -08:00
libopus Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libpng Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libsoundtouch Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libspeex_resampler Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libstagefright Bug 1393045 - support QT AudioSampleEntry v2. r=kinetik 2017-11-08 09:21:58 +08:00
libtheora Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libtremor Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libvorbis Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
libvpx Bug 1406542 Enable PTHREAD for vpx and aom under MinGW because we do in fact have them. r=rillian 2017-10-24 16:57:51 -05:00
libyuv Bug 1414440 - Always build libyuv x86 optimizations with Clang. r=sotaro 2017-11-03 23:12:19 +00:00
mtransport Bug 1415249 - remove unused variables introduced in Bug 1408218. r=drno 2017-11-07 09:28:47 -06:00
openmax_dl bug 1256010 - Remove media/openmax_dl/dl/Makefile.in. r=nalexander 2017-11-08 10:57:32 -08:00
openmax_il/il112 Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
psshparser Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
sphinxbase Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium 2017-10-25 15:12:09 -07:00
webrtc Bug 1414632 - Prevent division by zero in webrtc::Merge::SignalScaling; r=jesup 2017-11-08 12:39:53 -05:00
moz.build bug 1256010 - Remove media/openmax_dl/dl/Makefile.in. r=nalexander 2017-11-08 10:57:32 -08:00
update-libjpeg.sh