[libdvbpsi-devel] dr_40.c: Fix syntax error and include in Makefile.am

Roberto Corne git at videolan.org
Wed May 30 16:17:53 CEST 2012


libdvbpsi | branch: master | Roberto Corne <corno.roberto at gmail.com> | Wed May  9 17:00:00 2012 +0200| [702e602d230b2c595557145947b30ab89fcc5fe2] | committer: Jean-Paul Saman

dr_40.c: Fix syntax error and include in Makefile.am

The descriptor 0x40 was not included in src/Makefile.am. Therefor
syntax errors where not picked up. This patch adds the descriptor
to the src/Makefile.am and fixes a typo.

Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>

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

 src/Makefile.am         |    2 ++
 src/descriptors/dr_40.c |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 262a9f7..0d5b3f3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -36,6 +36,7 @@ pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \
                      descriptors/dr_0f.h \
                      descriptors/dr_13.h \
                      descriptors/dr_14.h \
+		     descriptors/dr_40.h \
                      descriptors/dr_42.h \
                      descriptors/dr_43.h \
                      descriptors/dr_44.h \
@@ -75,6 +76,7 @@ descriptors_src = descriptors/dr_02.c \
                   descriptors/dr_0f.c \
                   descriptors/dr_13.c \
                   descriptors/dr_14.c \
+		  descriptors/dr_40.c \
                   descriptors/dr_42.c \
                   descriptors/dr_43.c \
                   descriptors/dr_44.c \
diff --git a/src/descriptors/dr_40.c b/src/descriptors/dr_40.c
index 19e12be..ec55626 100644
--- a/src/descriptors/dr_40.c
+++ b/src/descriptors/dr_40.c
@@ -1,6 +1,6 @@
 /*
  * dr_40.c
- * Copyright (C) 2001-2011 VideoLAN
+ * Copyright (C) 2001-2012 VideoLAN
  *
  * Authors: rcorno (Nov 22, 2011)
  *
@@ -62,7 +62,7 @@ dvbpsi_network_name_dr_t* dvbpsi_DecodeNetworkNameDr(
 
     /* Decode data */
     p_decoded->i_name_length = p_descriptor->i_length <= 255 ?
-                               p_descriptor->i_lenght : 255;
+                               p_descriptor->i_length : 255;
     if (p_decoded->i_name_length)
         memcpy(p_decoded->i_name_byte,
                p_descriptor->p_data,



More information about the libdvbpsi-devel mailing list