Re: Bug in PAT generator

Tristan Leteurtre <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
On Tue, Sep 23, 2003, Johann Hanne wrote:
> Hi all,
> 
> PAT sections generated with dvbpsi_GenPATSections() have a wrong i_length
> field. The reason for this are lines 426 and 448 in src/tables/pat.c:
> p_current->i_length = 9;                      /* header + CRC_32 */
> "9" is wrong. It should be 12 (8 byte header + 4 byte CRC). Thus replacing
> it with
> p_current->i_length = 12;                      /* header + CRC_32 */
> fixes it.

Well, I don't agree, since the spec says about the "section_length"
field :

section_length - (..) It specifies the number of bytes of the section,
starting immediately following the section_length field, and including
CRC. Thus, we do not take into account the first 3 bytes.

-- 
Tristan


-- 
This is the libdvbpsi-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.