Use clipping prevention on 16-bit decode paths.
authorTimothy B. Terriberry <tterribe@xiph.org>
Mon, 25 Mar 2013 19:16:47 +0000 (12:16 -0700)
committerTimothy B. Terriberry <tterribe@xiph.org>
Mon, 25 Mar 2013 19:16:47 +0000 (12:16 -0700)
commitbf06c4f2ede23e23ff92ee9fb0fbedd84e69fb01
tree6d27032a05f3556137e66a839402786371222cb9
parentf8222c997a25aa32d9a7929b59988745ca6b2023
Use clipping prevention on 16-bit decode paths.

When we decode using libopus's fixed-point APIs, libopus internally
 applies soft clipping prevention.
When we decode using libopus's floating-point APIs, this behavior
 is disabled.
If we're ultimately planning to output the data to the user in
 fixed-point, we need to apply the clipping prevention ourselves.
src/internal.h
src/opusfile.c