Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
picons: do not use abort for not-critical check
  • Loading branch information
perexg committed Feb 18, 2015
1 parent 1bd1564 commit 2ba84e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/mpegts_service.c
Expand Up @@ -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;
assert(pos >= -1800 && pos <= 1800);
if (pos < -1800 || pos > 1800)
return NULL;
hash = (pos >= 0 ? pos : 3600 + pos) << 16;
break;
case DVB_TYPE_C:
Expand Down

0 comments on commit 2ba84e8

Please sign in to comment.