Skip to content

Commit 39ca39b

Browse files
committed
Rewind buffer before copying into it.
b/7334897 Change-Id: I83f795cb662d0845314bfb80b9a27ae45b2a0517
1 parent 5650d86 commit 39ca39b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

media/java/android/media/videoeditor/MediaArtistNativeHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3831,6 +3831,7 @@ public void onThumbnail(int index) {
38313831
outWidth, outHeight, Bitmap.Config.ARGB_8888);
38323832

38333833
// Copy int[] to IntBuffer
3834+
decBuffer.rewind();
38343835
decBuffer.put(decArray, 0, thumbnailSize);
38353836
decBuffer.rewind();
38363837

0 commit comments

Comments
 (0)