Commit 1e3a2eb7 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dr_83.c: check number of entries to be no more then 63.

parent 767d8d52
......@@ -90,6 +90,9 @@ dvbpsi_lcn_dr_t *dvbpsi_DecodeLCNDr(dvbpsi_descriptor_t *p_descriptor)
dvbpsi_descriptor_t* dvbpsi_GenLCNDr(dvbpsi_lcn_dr_t* p_decoded,
bool b_duplicate)
{
if (p_decoded->i_number_of_entries > 63)
p_decoded->i_number_of_entries = 63;
dvbpsi_descriptor_t* p_descriptor = dvbpsi_NewDescriptor(0x83, p_decoded->i_number_of_entries * 4, 0);
if (NULL == p_descriptor)
return NULL;
......
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