descriptors/dr_40.c: Remove unnecessary checks.

[email protected] (Jean-Paul Saman)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Tue Mar 18 15:12:59 2014 +0100| [d0df9645c28012908e1581491e7727a744d31ad1] | committer: Jean-Paul Saman

descriptors/dr_40.c: Remove unnecessary checks.

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=d0df9645c28012908e1581491e7727a744d31ad1
---

 src/descriptors/dr_40.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/descriptors/dr_40.c b/src/descriptors/dr_40.c
index d156e65..8830d50 100644
--- a/src/descriptors/dr_40.c
+++ b/src/descriptors/dr_40.c
@@ -62,8 +62,6 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
 
     /* Decode data */
     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)
         memcpy(p_decoded->i_name_byte,
@@ -83,9 +81,6 @@ dvbpsi_descriptor_t * dvbpsi_GenNetworkNameDr(
                                         dvbpsi_network_name_dr_t * p_decoded,
                                         bool b_duplicate)
 {
-    if (p_decoded->i_name_length > 255)
-        p_decoded->i_name_length = 255;
-
     /* Create the descriptor */
     dvbpsi_descriptor_t * p_descriptor =
             dvbpsi_NewDescriptor(0x40, p_decoded->i_name_length, NULL);

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.