From ef26e9dc2ccfa8f3e77f855cb0b571e0783e0def Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 25 Jan 2015 12:34:53 +0100 Subject: [PATCH] genpsi.cpp: fix offset for crc32 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/fb36b1e659ed9525dade546f4aebc7f2afe5591e Author: Jacek Jendrzej Date: 2015-01-25 (Sun, 25 Jan 2015) --- src/driver/genpsi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver/genpsi.cpp b/src/driver/genpsi.cpp index d27f844f4..bdd3f51a3 100644 --- a/src/driver/genpsi.cpp +++ b/src/driver/genpsi.cpp @@ -371,6 +371,7 @@ void CGenPsi::build_pmt(uint8_t* buffer) buffer[off++] = (/*descriptor_magazine_number*/ 0x01 & 0x06) | ((/*descriptor_type*/ 0x01 << 3) & 0xF8); buffer[off++] = 0x00 ; //Teletext_page_number } + off--; buffer[0x07] = off-3; // update section_length // Put CRC in ts[0x29...0x2c]