Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/epggrab/module/eit.c b/src/epggrab/module/eit.c
- index f3450f5..22cb744 100644
- --- a/src/epggrab/module/eit.c
- +++ b/src/epggrab/module/eit.c
- @@ -368,12 +368,14 @@ static int _eit_desc_content
- static int _eit_desc_parental
- ( epggrab_module_t *mod, uint8_t *ptr, int len, eit_event_t *ev )
- {
- - int cnt = 0, sum = 0;
- + int cnt = 0, sum = 0, i = 0;
- while (len > 3) {
- - if ( ptr[3] && ptr[3] < 0x10 ) {
- + if ( ptr[i] && ptr[i] < 0x10 ) {
- cnt++;
- - sum += (ptr[3] + 3);
- + sum += (ptr[i] + 3);
- }
- + len -= 4;
- + i += 4;
- }
- // Note: we ignore the country code and average the lot!
- if (cnt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement