mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
genpsi.cpp: fix offset for crc32
Origin commit data
------------------
Commit: fb36b1e659
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-25 (Sun, 25 Jan 2015)
This commit is contained in:
@@ -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++] = (/*descriptor_magazine_number*/ 0x01 & 0x06) | ((/*descriptor_type*/ 0x01 << 3) & 0xF8);
|
||||||
buffer[off++] = 0x00 ; //Teletext_page_number
|
buffer[off++] = 0x00 ; //Teletext_page_number
|
||||||
}
|
}
|
||||||
|
off--;
|
||||||
buffer[0x07] = off-3; // update section_length
|
buffer[0x07] = off-3; // update section_length
|
||||||
|
|
||||||
// Put CRC in ts[0x29...0x2c]
|
// Put CRC in ts[0x29...0x2c]
|
||||||
|
Reference in New Issue
Block a user