Skip to content

Commit

Permalink
Fix incorrect data slice size
Browse files Browse the repository at this point in the history
  • Loading branch information
anime-song committed Oct 20, 2024
1 parent cf949b6 commit e8d498c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gopro2gpx/fourCC.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def Build(self, klvdata):
stype = "".join( [map_type(ord(x)) for x in gps9_type ])

s = struct.Struct('>' + stype )
data_item = GPS9Data._make(s.unpack_from(klvdata.rawdata[r * (4 * 7 + 2 * 2):(r + 1) * (4 * 7 * 2 * 2)]))
data_item = GPS9Data._make(s.unpack_from(klvdata.rawdata[r * (4 * 7 + 2 * 2):(r + 1) * (4 * 7 + 2 * 2)]))
data.append(data_item)
return(data)

Expand Down

0 comments on commit e8d498c

Please sign in to comment.