From a27b0af2b82dae83cf8a41e01ee1174b911f3aa3 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 6 Nov 2015 18:53:20 +0100 Subject: [PATCH] psip: fix wrong shift for the upper msg of the event id --- src/epggrab/module/psip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epggrab/module/psip.c b/src/epggrab/module/psip.c index ac5800bbf..e2029f73b 100644 --- a/src/epggrab/module/psip.c +++ b/src/epggrab/module/psip.c @@ -557,7 +557,7 @@ _psip_ett_callback if (r != 1) return r; sourceid = (ptr[6] << 8) | ptr[7]; - eventid = (ptr[8] << 8) | ((ptr[9] >> 2) & 0x3f); + eventid = (ptr[8] << 6) | ((ptr[9] >> 2) & 0x3f); isevent = (ptr[9] & 0x2) >> 1; /* Look up channel based on the source id */ -- 2.47.3