Fixes packet parsing for 16-bit CPUs v1.3-rc2
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 14 Sep 2018 20:27:03 +0000 (16:27 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 14 Sep 2018 20:27:03 +0000 (16:27 -0400)
commit4a643d98c388727e73aebbe626a7379c6fddbbbe
tree37dc822e588dd4e9566696126103b477c02f2cc2
parentc6d977a966ccdb9ea684d8650cc6f8cccfedf8d7
Fixes packet parsing for 16-bit CPUs

Without that change, a very long (> 682 ms) illegal packet could trigger
a wrap-around in the test and be accepted as valid.

Only 16-bit architectures (e.g. TI C5x) were affected.
src/opus.c