[Android] Fix video codec specific data corruption
NewDirectByteBuffer does not copy the provided data but assumes the data
is available for the life time of the Java ByteBuffer object. This mean
passing in a stack allocated byte buffer will lead to memory corruption
when the buffer goes out of scope.
Fix by copying the data into a separate java byte buffer.
BUG=293874
Review URL: https://chromiumcodereview.appspot.com/
24045004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223828 0039d316-1c4b-4281-b951-d872f2087c98