]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
service: correct fhdtv/uhdtv height checks
authorJaroslav Kysela <perex@perex.cz>
Sun, 6 Oct 2019 15:05:50 +0000 (17:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 6 Oct 2019 15:07:40 +0000 (17:07 +0200)
src/service.c

index 79b7d93f103d0fc43914d833ebd1407370b3c2c7..ae08a39a27f1baed51e2a8f1da0554f6b0fcb321 100644 (file)
@@ -907,7 +907,7 @@ service_is_fhdtv(const service_t *t)
   else if (s_type == ST_NONE) {
     elementary_stream_t *st;
     TAILQ_FOREACH(st, &t->s_components.set_all, es_link)
-      if (SCT_ISVIDEO(st->es_type) && st->es_height == 1080)
+      if (SCT_ISVIDEO(st->es_type) && st->es_height >= 1080 && st->es_height < 1440)
         return 1;
   }
   return 0;
@@ -926,7 +926,7 @@ service_is_uhdtv(const service_t *t)
   else if (s_type == ST_NONE) {
     elementary_stream_t *st;
     TAILQ_FOREACH(st, &t->s_components.set_all, es_link)
-      if (SCT_ISVIDEO(st->es_type) && st->es_height > 1080)
+      if (SCT_ISVIDEO(st->es_type) && st->es_height >= 1440)
         return 1;
   }
   return 0;