From 39ca39b0268b6c8d227163c52653162e06b84bda Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Fri, 12 Oct 2012 11:13:10 -0700 Subject: Rewind buffer before copying into it. b/7334897 Change-Id: I83f795cb662d0845314bfb80b9a27ae45b2a0517 --- media/java/android/media/videoeditor/MediaArtistNativeHelper.java | 1 + 1 file changed, 1 insertion(+) (limited to 'media/java') diff --git a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java index 4756078..f4fccbe 100644 --- a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java +++ b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java @@ -3831,6 +3831,7 @@ class MediaArtistNativeHelper { outWidth, outHeight, Bitmap.Config.ARGB_8888); // Copy int[] to IntBuffer + decBuffer.rewind(); decBuffer.put(decArray, 0, thumbnailSize); decBuffer.rewind(); -- cgit v1.1