summaryrefslogtreecommitdiff
path: root/lib/Image/ExifTool/Geotag.pm
diff options
context:
space:
mode:
authorexiftool <exiftool@users.sourceforge.net>2022-02-09 07:21:32 -0500
committerexiftool <exiftool@users.sourceforge.net>2022-02-09 07:21:32 -0500
commit537cba56936c21b729aeed404b117e31c3c6fed0 (patch)
treec93fb58a44e3bb060dbb5d19e45c1a1eda55ad35 /lib/Image/ExifTool/Geotag.pm
parent00e4fdc52ea3780e25b0371e9817ecb39329518c (diff)
Update to 12.40
Diffstat (limited to 'lib/Image/ExifTool/Geotag.pm')
-rw-r--r--lib/Image/ExifTool/Geotag.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Image/ExifTool/Geotag.pm b/lib/Image/ExifTool/Geotag.pm
index 23d2a03b..6f457980 100644
--- a/lib/Image/ExifTool/Geotag.pm
+++ b/lib/Image/ExifTool/Geotag.pm
@@ -28,7 +28,7 @@ use vars qw($VERSION);
use Image::ExifTool qw(:Public);
use Image::ExifTool::GPS;
-$VERSION = '1.65';
+$VERSION = '1.66';
sub JITTER() { return 2 } # maximum time jitter
@@ -210,13 +210,14 @@ sub LoadTrackLog($$;$)
$raf->ReadLine($_) or last;
# determine file format
if (not $format) {
+ s/^\xef\xbb\xbf//; # remove leading BOM if it exists
if (/^<(\?xml|gpx)[\s>]/) { # look for XML or GPX header
$format = 'XML';
# check for NMEA sentence
# (must ONLY start with ones that have timestamps! eg. not GSA or PTNTHPR!)
} elsif (/^.*\$([A-Z]{2}(RMC|GGA|GLL|ZDA)|PMGNTRK),/) {
$format = 'NMEA';
- $nmeaStart = $2 || $1; # save type of first sentence
+ $nmeaStart = $2 || $1; # save type of first sentence
} elsif (/^A(FLA|XSY|FIL)/) {
# (don't set format yet because we want to read HFDTE first)
$nmeaStart = 'B' ;