Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvb_support: change GPS UTC offset to one less
Not sure why it's needed, but looking at STT samples it looks like the
offset is one less than I'd expect.
  • Loading branch information
laurimyllari authored and perexg committed Oct 22, 2015
1 parent 1d36d59 commit fa06ca2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/input/mpegts/dvb_support.c
Expand Up @@ -534,8 +534,9 @@ atsc_convert_gpstime(uint32_t gpstime)

for (i = (sizeof(_gps_leap_seconds)/sizeof(time_t)) - 1; i >= 0; i--) {
if (out > _gps_leap_seconds[i]) {
tvhwarn("gpstime", "leap seconds: %d", i+1);
out -= i+1;
// offset should be i+1, but sample STTs don't agree?
tvhdebug("gpstime", "leap seconds: %d", i);
out -= i;
break;
}
}
Expand Down

0 comments on commit fa06ca2

Please sign in to comment.