Allocate sufficiently sized buffer for entire segment including the unencrypted section.

A real bug.  Per the specifications, the AES decryption
will occur only on complete 16 byte blocks, with the
remainder unencrypted.  The codes allocated a buffer
only big enough for the aes encrypted data, and when
it copied the remainder, it overflowed that buffer
(anywhere from 0 to 15 bytes).

Fixes coverity 1023889

(There is some chance coverity will not understand the fix)

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
Fix audio corruption when encoding using built-in AAC encoder.

Was only processing half-the audio samples
Expand Audio Framework to only ever decode S16, interleaved audio unless explicitly configured otherwise

This will greatly simplify custom audio class like the one used in mythtranscode.
Add two methods to AudioOutput:
-CanProcess: will tell if the audio instance can handle a given sample format
-DecodeAudio: will decode audio and de-interleave according to what the audio instance can receive

AudioPlayer is extended accordingly. AVFD will now use new methods to decode audio before feeding it to the audio class.
Revert 3c8f209d3a09 on audioreencodebuffer.{cpp;h}

New audio class doesn't require its derivated class to handle format conversion ; it's now done at the core level.
Following 813524643bc397c14b48e25aa5cc01ab8d99fb97; upgrade NuppelDecoder for new audio framework API

This will probably fix transcoding nuppel videos.