Commit 70a72d4a authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

Fix decoding of the CA identifier descriptor

The decoding function for the CA identifier descriptor does not take into
account the lower byte of i_ca_system_id.

(cherry picked from commit a6bb209280ed156ff509eb98f1d5d33f9c8d719f)
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 52badb40
......@@ -70,7 +70,8 @@ dvbpsi_ca_identifier_dr_t * dvbpsi_DecodeCAIdentifierDr(dvbpsi_descriptor_t *p_d
for (int i = 0; i < i_number; i++)
{
/* TODO: decode CA system identifier values */
p_decoded->p_system[i].i_ca_system_id = p_descriptor->p_data[2 * i];
p_decoded->p_system[i].i_ca_system_id = p_descriptor->p_data[2 * i] << 8;
p_decoded->p_system[i].i_ca_system_id |= p_descriptor->p_data[2 * i + 1];
}
p_descriptor->p_decoded = (void*)p_decoded;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment