Commit 0602ad23 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Remove trailing whitespace and updated comments.

parent b14bc0fe
......@@ -21,7 +21,6 @@
*
*****************************************************************************/
#include "config.h"
#include <stdio.h>
......@@ -40,7 +39,6 @@
#include "dr_56.h"
/*****************************************************************************
* dvbpsi_DecodeTeletextDr
*****************************************************************************/
......@@ -51,7 +49,7 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
dvbpsi_teletext_dr_t * p_decoded;
/* Check the tag */
if(p_descriptor->i_tag != 0x56 && p_descriptor->i_tag != 0x46)
if( (p_descriptor->i_tag != 0x56) && (p_descriptor->i_tag != 0x46) )
{
DVBPSI_ERROR_ARG("dr_46/56 decoder", "bad tag (0x%x)", p_descriptor->i_tag);
return NULL;
......@@ -64,14 +62,14 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
/* Decode data and check the length */
if(p_descriptor->i_length < 3)
{
DVBPSI_ERROR_ARG("dr_56 decoder", "bad length (%d)",
DVBPSI_ERROR_ARG("dr_46/dr_56 decoder", "bad length (%d)",
p_descriptor->i_length);
return NULL;
}
if(p_descriptor->i_length % 5)
{
DVBPSI_ERROR_ARG("dr_56 decoder", "length not multiple of 5(%d)",
DVBPSI_ERROR_ARG("dr_46/dr_56 decoder", "length not multiple of 5(%d)",
p_descriptor->i_length);
return NULL;
}
......@@ -83,7 +81,7 @@ dvbpsi_teletext_dr_t * dvbpsi_DecodeTeletextDr(
(dvbpsi_teletext_dr_t*)malloc(sizeof(dvbpsi_teletext_dr_t));
if(!p_decoded)
{
DVBPSI_ERROR("dr_56 decoder", "out of memory");
DVBPSI_ERROR("dr_46/dr_56 decoder", "out of memory");
return NULL;
}
......@@ -153,4 +151,3 @@ dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
return p_descriptor;
}
......@@ -27,7 +27,7 @@
* \brief EBU Teletext descriptor parsing.
*
* DVB EBU Teletext descriptor parsing, according to ETSI EN 300 468
* section 6.2.41.
* version 1.7.1 section 6.2.42 and 6.2.47.
*
* NOTE: this descriptor is known by tag value 0x56 AND 0x46
*/
......@@ -71,7 +71,7 @@ typedef struct dvbpsi_teletextpage_s
* \brief "teletext" descriptor structure.
*
* This structure is used to store a decoded "teletext"
* descriptor. (ETSI EN 300 468 section 6.2.41).
* descriptor. (ETSI EN 300 468 version 1.7.1 section 6.2.42 and 6.2.47).
*/
/*!
* \typedef struct dvbpsi_teletext_dr_s dvbpsi_teletext_dr_t
......@@ -125,4 +125,3 @@ dvbpsi_descriptor_t * dvbpsi_GenTeletextDr(
#else
#error "Multiple inclusions of dr_56.h"
#endif
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