Commit 702e602d authored by Roberto Corne's avatar Roberto Corne Committed by 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's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
parent 5070805f
......@@ -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 \
......
/*
* 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,
......
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