Commit d0df9645 authored by Jean-Paul Saman's avatar Jean-Paul Saman

descriptors/dr_40.c: Remove unnecessary checks.

parent 4272bb9f
...@@ -62,8 +62,6 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr( ...@@ -62,8 +62,6 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
/* Decode data */ /* Decode data */
p_decoded->i_name_length = p_descriptor->i_length; p_decoded->i_name_length = p_descriptor->i_length;
if (p_decoded->i_name_length > 255)
p_decoded->i_name_length = 255;
if (p_decoded->i_name_length) if (p_decoded->i_name_length)
memcpy(p_decoded->i_name_byte, memcpy(p_decoded->i_name_byte,
...@@ -83,9 +81,6 @@ dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr( ...@@ -83,9 +81,6 @@ dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
dvbpsi_network_name_dr_t * p_decoded, dvbpsi_network_name_dr_t * p_decoded,
bool b_duplicate) bool b_duplicate)
{ {
if (p_decoded->i_name_length > 255)
p_decoded->i_name_length = 255;
/* Create the descriptor */ /* Create the descriptor */
dvbpsi_descriptor_t * p_descriptor = dvbpsi_descriptor_t * p_descriptor =
dvbpsi_NewDescriptor(0x40, p_decoded->i_name_length, NULL); dvbpsi_NewDescriptor(0x40, p_decoded->i_name_length, 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