[libdvbpsi-devel] descriptors/dr_47.c: Remove unnecessary checks.

Jean-Paul Saman git at videolan.org
Tue Mar 18 16:47:11 CET 2014


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue Mar 18 15:19:35 2014 +0100| [4db5b329df7416068b31d0c7b28ce615bc245009] | committer: Jean-Paul Saman

descriptors/dr_47.c: Remove unnecessary checks.

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

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

diff --git a/src/descriptors/dr_47.c b/src/descriptors/dr_47.c
index 202fb8a..7c9325b 100644
--- a/src/descriptors/dr_47.c
+++ b/src/descriptors/dr_47.c
@@ -65,8 +65,6 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
 
     /* 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_char,
@@ -85,9 +83,6 @@ dvbpsi_bouquet_name_dr_t * dvbpsi_DecodeBouquetNameDr(
 dvbpsi_descriptor_t * dvbpsi_GenBouquetNameDr(dvbpsi_bouquet_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(0x47, p_decoded->i_name_length, NULL);



More information about the libdvbpsi-devel mailing list