stagefright: Allocate only what is needed for FLAC decoding

 * Choose buffer size based on bit depth

Change-Id: Ic3aef0ac77f330896dfcfe4cccfc5113925d28b1