From: Jaroslav Kysela Date: Fri, 6 Nov 2015 17:53:20 +0000 (+0100) Subject: psip: fix wrong shift for the upper msg of the event id X-Git-Tag: v4.2.1~1637 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a27b0af2b82dae83cf8a41e01ee1174b911f3aa3;p=thirdparty%2Ftvheadend.git psip: fix wrong shift for the upper msg of the event id --- 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 */