Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] bug in mpegtools ??
- To: linux-dvb@linuxtv.org
- Subject: [linux-dvb] bug in mpegtools ??
- From: michal <michal@etc.cz>
- Date: Fri, 07 Feb 2003 14:25:57 +0100
- Content-transfer-encoding: 7bit
- Content-type: text/plain; charset=us-ascii; format=flowed
- Sender: linux-dvb-bounce@linuxtv.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830
I tried to use insert_pat_pmt and I found out that it generates bad
continuity counter in PAT/PMT packets.
In function insert_pat_pmt in transform.c is this code
tspid0[3] |= (c0++)
& 0x0F ;
tspid1[3] |= (c1++)
& 0x0F ;
It produces this sequence:
0x?0, 0x?0, 0x?1, 0x?3, 0x?3, 0x?7, 0x?7, 0x?7, 0x?7, 0x?F and then 0x?F
forever.
Shouldn't look the code like this?
tspid0[3] = (tspid0[3] & 0xF0) | ((++c0) & 0x0F);
tspid1[3] = (tspid1[3] & 0xF0) | ((++c1) & 0x0F);
Michal
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index