]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
picons: fix filaname calculation for West positions, fixes #2685
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Feb 2015 12:07:42 +0000 (13:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 18 Feb 2015 12:09:10 +0000 (13:09 +0100)
src/input/mpegts/mpegts_service.c

index e2b06e39c8aef37bde25ddd5c8e6dc5986d4dba7..65a26aa757aa65736273984e795d380311549aae 100644 (file)
@@ -451,7 +451,8 @@ mpegts_service_channel_icon ( service_t *s )
       case DVB_TYPE_S:
         if ((pos = dvb_network_get_orbital_pos(mmd->mm_network)) == INT_MAX)
           return NULL;
-        hash = (pos >= 0 ? pos : 0xFFFF - abs(pos)) << 16;
+        assert(pos >= -1800 && pos <= 1800);
+        hash = (pos >= 0 ? pos : 3600 + pos) << 16;
         break;
       case DVB_TYPE_C:
         hash = 0xFFFF0000;