summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-10-12 11:13:10 -0700
committerMarco Nelissen <marcone@google.com>2012-10-12 11:13:10 -0700
commit39ca39b0268b6c8d227163c52653162e06b84bda (patch)
treedb315e2164baecb5f1ca45f21f4cc14cf8678681 /media
parent5650d86aa3c6d9329638015b166027d60521dc84 (diff)
downloadframeworks_base-39ca39b0268b6c8d227163c52653162e06b84bda.zip
frameworks_base-39ca39b0268b6c8d227163c52653162e06b84bda.tar.gz
frameworks_base-39ca39b0268b6c8d227163c52653162e06b84bda.tar.bz2
Rewind buffer before copying into it.
b/7334897 Change-Id: I83f795cb662d0845314bfb80b9a27ae45b2a0517
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/videoeditor/MediaArtistNativeHelper.java1
1 files changed, 1 insertions, 0 deletions
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();