diff options
author | Manu Abraham <devnull@localhost> | 2005-09-21 15:36:13 +0000 |
---|---|---|
committer | Manu Abraham <devnull@localhost> | 2005-09-21 15:36:13 +0000 |
commit | 5124b78659c50243cecb46bf2903f9acd495840a (patch) | |
tree | 058b0064468a31c82ceb2b48cdf9414ca6432fe5 | |
parent | ecf4d8a4c5cc6aa74cbbd62924750c0d46b6e672 (diff) | |
download | mediapointer-dvb-s2-5124b78659c50243cecb46bf2903f9acd495840a.tar.gz mediapointer-dvb-s2-5124b78659c50243cecb46bf2903f9acd495840a.tar.bz2 |
ASN.1 length field Fix
Signed-off-by: Raymond Mantchala <raymond.mantchala@streamvision.ft>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst_ca.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst_ca.c b/linux/drivers/media/dvb/bt8xx/dst_ca.c index ecab02c96..667358891 100644 --- a/linux/drivers/media/dvb/bt8xx/dst_ca.c +++ b/linux/drivers/media/dvb/bt8xx/dst_ca.c @@ -329,7 +329,8 @@ u32 asn_1_decode(u8 *asn_1_array) } else { word_count = length_field & 0x7f; for (count = 0; count < word_count; count++) { - length = (length | asn_1_array[count + 1]) << 8; + length = length << 8; + length += asn_1_array[count + 1]; dprintk(verbose, DST_CA_DEBUG, 1, " Length=[%04x]", length); } } |