Prevent the SILK counter from overflowing after 2 years and 9 months
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Sep 2018 02:57:36 +0000 (22:57 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 27 Sep 2018 02:57:36 +0000 (22:57 -0400)
commita8e2a2b1a8ab2cb9d9e7d4fe21128ac9e769fe4e
treec7d4ae16e50f6a8e08ef6af599579be9dc4b14fe
parent5d290239f110af41f1e29b63b8008b5016e23a63
Prevent the SILK counter from overflowing after 2 years and 9 months

or "just" 1 year and 4 months for 10-ms frames.
The overflow can eventually cause a divide-by-zero when counter == -16

Thanks to Dmitry Malinin for reporting the bug.
silk/VAD.c