]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Revert "dvb_support: change GPS UTC offset to one less"
authorLauri Myllari <lauri.myllari@gmail.com>
Sat, 17 Jan 2015 07:20:24 +0000 (23:20 -0800)
committerJaroslav Kysela <perex@perex.cz>
Thu, 22 Oct 2015 15:33:59 +0000 (17:33 +0200)
This reverts commit b9a666e12ce61c70621a6acbb284b7c600a02059.

It doesn't seem to be needed based on real broadcasts.

src/input/mpegts/dvb_support.c

index 9ef1953f99f60d705c47041bf0f7d1c5937dcaed..749cf6dbb3cefba0a98b58d42d7ef9397fde4001 100644 (file)
@@ -534,9 +534,8 @@ 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]) {
-      // offset should be i+1, but sample STTs don't agree?
-      tvhdebug("gpstime", "leap seconds: %d", i);
-      out -= i;
+      tvhwarn("gpstime", "leap seconds: %d", i+1);
+      out -= i+1;
       break;
     }
   }