Skip to content

Commit

Permalink
Merge pull request #26 from kvalev/kvv-fix-32bit-error
Browse files Browse the repository at this point in the history
Fix integer overflow on 32bit systems
  • Loading branch information
kvalev authored Oct 6, 2021
2 parents 89c972d + 582c4b6 commit 2e5220a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/photoprism/mediafile_motionphoto.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (f *MediaFile) ExtractVideoFromMotionPhoto() (file *MediaFile, err error) {

if offset == 0 {
log.Warnf("mp: mp4 offset in motion photo directory entry is 0 in %s, resetting offset in an attempt to recover", txt.Quote(fileName))
offset = math.MaxInt64
offset = math.MaxInt32
}

if err := f.extractGoogleMotionPhotoVideo(offset, mpName, fileName); err != nil {
Expand Down

0 comments on commit 2e5220a

Please sign in to comment.