Skip to content

Commit

Permalink
Fix critical bug in getThumbnail in VideoThumbnailCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
zHd4 committed Jan 13, 2025
1 parent fa1fa53 commit a3c6a4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public byte[] getThumbnail(File file) {

if (ReturnCode.isSuccess(session.getReturnCode())) {
try {
byte[] thumbnailBytes = new byte[(int) file.length()];
byte[] thumbnailBytes = new byte[(int) tempThumbnailFile.length()];

try (FileInputStream inputStream = new FileInputStream(tempThumbnailFile)) {
inputStream.read(thumbnailBytes);
Expand Down

0 comments on commit a3c6a4a

Please sign in to comment.