Android p preview 4
Fix buffersize may smaller than the input files

Buffter size depends on the first input file.
If the second file is larger than the first one,
the buffer size is not enough.

Allocate and free buffer everytime when read a new file.

Bug: 109664165
Bug: 110117072
Test: Not yet.
Change-Id: Ie962d742972245da9f0075d1b018257fd58d321d
1 file changed