ENGR00294739 coreimage, screenrecord sometimes fail when shift different video

The recorder exit because can't request encoder buffer. In this case,
sample table is not written to the mp4 file, so can't play.
Make sure the sample table is written can fix it.

Change-Id: Ia38e28d4a9a10a70bb352b03dd17a62d090c9ad4
stagefright: stop audio source if player fails to start

Change-Id: I70083f8bfe8409283e52eea017d27d94767c5244
stagefright: Move to 64 available tracks

Many games use numerous tracks.  If the system
runs out of tracks, new tracks won't be able
to be created.  This has been causing notifications
not to play if many apps are holding open tracks.

Issue: BACON-6

Change-Id: I9cea51b9bd678feba31a88e17dd22083b01d81de
stagefright: Fix 24-bit WAV

 * When 24-bit output is enabled, we need to ensure that padding
   to 32 bits is done correctly.
 * Create new output buffers which conform to the correct format.

Change-Id: I5c07027ee8d3040147698c1f484b40991f943c03