Small cleanups of the soft clipping code.
authorTimothy B. Terriberry <tterribe@xiph.org>
Sat, 6 Apr 2013 04:06:28 +0000 (21:06 -0700)
committerTimothy B. Terriberry <tterribe@xiph.org>
Sat, 6 Apr 2013 04:06:28 +0000 (21:06 -0700)
commit7b49904805150793a0cb8a9219da60b1bb276877
treee5085d5df3af7ac7ee150524da1ab6bf9d079592
parentbf06c4f2ede23e23ff92ee9fb0fbedd84e69fb01
Small cleanups of the soft clipping code.

- Made OP_SOFT_CLIP defined only when using floating point (libopus
   handles clipping when using the fixed-point API).
- Struct rearrangement for theoretically better packing on some
   platforms.
- Reset the state tracking channel count when re-initializing a
   decoder (and not the dither mute, because that gets reset for
   free).
src/internal.h
src/opusfile.c