[mythtv] [PATCH] DVB decryption fix

Kenneth Aafl°y lists at kenneth.aafloy.net
Wed Sep 7 16:52:33 UTC 2005


Onsdag 07 september 2005 17:57, skrev Daniel Kristjansson:
> On Wed, 2005-08-31 at 03:28 +0200, Kenneth Aafl°y wrote:
> > Hi!
> >
> > If you read EN50221s section about CA_PMT you'll notice that
> > ca_pmt_cmd_id only should be specified before a non-empty descriptor list
> > and not before every descriptor. Patch attached, please apply.
>
> It looks like this patch is a little miss-formed.
>
> The printf is indented, but there are no braces so it is
> always printed out.

It should have been deleted when I removed the braces :)

> Also, wouldn't it be simpler to replace that line with
>     if (data_len > 0)
>         capmt[length++] = CPCI_OK_DESCRAMBLING; // ca_pmt_cmd_id
> so that we are checking the same thing as the data copy?

data_len specifies the private data of the ca descriptor, it
may or may not be present depending on the system used.

the format of ca_pmt is:

ca_pmt_list_management
<program header>
if (program descriptors > 0)
	CPCI_OK_DESCRAMBLING
<program descriptors>
for each stream
	<stream header>
	if (stream descriptors > 0)
		CPCI_OK_DESCRAMBLING
	<stream descriptors>

if (infoLengthPos + 2 == length)
we are either at start of program descriptors or stream descriptors.

Does that clarify it?

Kenneth


More information about the mythtv-dev mailing list