commit | 58ecb1ac15cadec832fc5e539c250b0a6b1a0b90 | [log] [tgz] |
---|---|---|
author | Gregory Maxwell <greg@xiph.org> | Mon May 09 13:16:30 2011 -0400 |
committer | Jean-Marc Valin <jean-marc.valin@octasic.com> | Mon May 09 15:54:08 2011 -0400 |
tree | b0f841fd3a093fe666771d7008354b1132d5d9c2 | |
parent | 280c060bb11919aad4b96a60a2542a49ee3d5a0b [diff] |
The encoder would crash in the PVQ search if fed NaNs via the float interface. This patch protects against it in two sufficient ways: Making the PVQ search robust against NaNs and by squashing NaNs to zero on input. Thanks to David Richards for reporting this failure mode.