[PATCH 1/3] libdvbv5: do not adjust DVB time daylight saving

2019-01-02 Thread André Roth
Sets tm_isdst to -1. This makes dvb_time available outside of EIT parsing, and struct tm to reflect the actual values received from DVB. Also fixes indentation. Signed-off-by: André Roth --- lib/libdvbv5/tables/eit.c | 49 +++ 1 file changed, 24 insertions

[PATCH 2/3] libdvbv5: enable newlines in dvb strings

2019-01-02 Thread André Roth
Newlines in are encoded as 0x8a, convert them to '\n' Signed-off-by: André Roth --- lib/libdvbv5/parse_string.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libdvbv5/parse_string.c b/lib/libdvbv5/parse_string.c index 6e301ac8..d354f497 100644 --- a/li

[PATCH 3/3] libdvbv5: fix array size in desc_logical_channel

2019-01-02 Thread André Roth
This fixes the descriptor paring on 64bit systems. Thanks to abasse...@tiscali.it for finding and patching. Signed-off-by: André Roth --- lib/libdvbv5/descriptors/desc_logical_channel.c | 4 ++-- lib/libdvbv5/dvb-file.c | 2 +- 2 files changed, 3 insertions(+), 3

[PATCH 3/4] libdvbv5: fix parsing EIT extended event descriptor

2018-07-07 Thread André Roth
correctly parse, print and free the extended event descriptor list of description/item pairs. also fixes a typo in short event descriptor. Signed-off-by: André Roth --- lib/include/libdvbv5/desc_event_extended.h | 9 +++ lib/libdvbv5/descriptors/desc_event_extended.c | 83

[PATCH 4/4] libdvbv5: fix parsing section gaps

2018-07-07 Thread André Roth
use the priv->extensions list also when parsing no continuous sections. also fixes memory allocation/initialization for the extensions list. Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/

[PATCH 1/4] libdvbv5: do not adjust DVB time daylight saving

2018-07-07 Thread André Roth
This makes dvb_time available outside of EIT parsing, and struct tm to reflect the actual values received from DVB. Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h | 11 +++ lib/include/libdvbv5/eit.h | 10 -- lib/libdvbv5/descriptors.c | 37

[PATCH 2/4] libdvbv5: fix double free in dvb_fe_open_fname

2018-07-07 Thread André Roth
Since parms and fname is allocated outside of the function, do not free it. Use dvb_v5_free for freeing parms, it will free fname if required. Signed-off-by: André Roth --- lib/libdvbv5/dvb-fe.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/libdvbv5/dvb-fe.c b

[PATCH] libdvbv5: MPEG TS parser documentation and cleanups

2014-09-18 Thread André Roth
Documents the table parser for MPEG-PES. Cleanup doxygen of other parsers. Signed-off-by: André Roth --- doxygen_libdvbv5.cfg| 3 +- lib/include/libdvbv5/mpeg_es.h | 11 ++- lib/include/libdvbv5/mpeg_pes.h | 146 ++-- lib/include/libdvbv5

[PATCH] libdvbv5: use hyperlinks in doxygen PDF

2014-09-18 Thread André Roth
Signed-off-by: André Roth --- doxygen_libdvbv5.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doxygen_libdvbv5.cfg b/doxygen_libdvbv5.cfg index bbdaf9a..51ec180 100644 --- a/doxygen_libdvbv5.cfg +++ b/doxygen_libdvbv5.cfg @@ -1656,7 +1656,7 @@ LATEX_EXTRA_FILES

[PATCH v3] libdvbv5: MPEG TS parser documentation

2014-09-18 Thread André Roth
Signed-off-by: André Roth --- doxygen_libdvbv5.cfg | 1 + lib/include/libdvbv5/mpeg_ts.h | 96 -- 2 files changed, 94 insertions(+), 3 deletions(-) diff --git a/doxygen_libdvbv5.cfg b/doxygen_libdvbv5.cfg index f1f9ab4..bbdaf9a 100644 --- a

[PATCH v2] libdvbv5: MPEG TS parser documentation

2014-09-18 Thread André Roth
Signed-off-by: André Roth --- doxygen_libdvbv5.cfg | 1 + lib/include/libdvbv5/mpeg_ts.h | 96 -- 2 files changed, 94 insertions(+), 3 deletions(-) diff --git a/doxygen_libdvbv5.cfg b/doxygen_libdvbv5.cfg index f1f9ab4..bbdaf9a 100644 --- a

[PATCH] libdvbv5: MPEG TS parser documentation

2014-09-18 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/mpeg_ts.h | 96 -- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/lib/include/libdvbv5/mpeg_ts.h b/lib/include/libdvbv5/mpeg_ts.h index 3eab029..2662543 100644 --- a/lib/include/libdvbv5

[PATCH] libdvbv5: MPEG ES parser documentation

2014-09-17 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/mpeg_es.h | 140 +++-- 1 file changed, 135 insertions(+), 5 deletions(-) diff --git a/lib/include/libdvbv5/mpeg_es.h b/lib/include/libdvbv5/mpeg_es.h index 4f1786e..377f235 100644 --- a/lib/include/libdvbv5

[PATCH] libdvbv5: fix dvb_fe_dummy()

2014-09-13 Thread André Roth
initialize the parms structure correctly Signed-off-by: André Roth --- lib/libdvbv5/dvb-fe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c index 6745694..f733b27 100644 --- a/lib/libdvbv5/dvb-fe.c +++ b/lib/libdvbv5/dvb-fe.c @@ -43,6 +43,9

[PATCH 1/2] libdvbv5: cleanup logging, some memory checks

2014-09-13 Thread André Roth
- use loginfo in hexdump - use C comments - memory checking in desc_sat and desc_service Signed-off-by: André Roth --- lib/include/libdvbv5/desc_service_list.h | 3 +- lib/libdvbv5/descriptors.c | 2 +- lib/libdvbv5/descriptors/desc_sat.c | 12 +--- lib/libdvbv5

[PATCH 2/2] libdvbv5: fix satellite LNBf handling

2014-09-13 Thread André Roth
the LNBf is part of the public structure, remove it from dvb_v5_fe_parms_priv. fix typo for C++. Signed-off-by: André Roth --- lib/include/libdvbv5/dvb-sat.h | 2 +- lib/libdvbv5/dvb-fe-priv.h | 1 - lib/libdvbv5/dvb-sat.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions

[PATCH] libdvbv5: provide crc32 to c++

2014-07-06 Thread André Roth
allow C++ apps to use crc32 Signed-off-by: André Roth --- lib/include/libdvbv5/crc32.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/include/libdvbv5/crc32.h b/lib/include/libdvbv5/crc32.h index d1968e8..4261bda 100644 --- a/lib/include/libdvbv5/crc32.h +++ b

[PATCH] libdvbv5: improve DVB header handling

2014-04-16 Thread André Roth
the table parsers now initialize the complete table, and do no longer rely on an already initialized table header in the supplied buffer. adds section length checking in PAT as well. Signed-off-by: André Roth --- lib/include/libdvbv5/header.h | 2 +- lib/libdvbv5/dvb-scan.c| 31

[PATCH] libdvbv5: improve CRC size handling

2014-04-15 Thread André Roth
- provide buffer without CRC to the table parsers - remove unneeded defines Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h | 3 +-- lib/libdvbv5/dvb-scan.c| 2 +- lib/libdvbv5/tables/atsc_eit.c | 2 +- lib/libdvbv5/tables/cat.c | 4 ++-- lib/libdvbv5

[PATCH 4/4] libdvbv5: build dynamic libdvbv5 by default

2014-04-15 Thread André Roth
- renamed ./configure option --enable-libdvbv5 to --disable-libdvbv5 - thus libdvbv5 will be build shared by default - cleanups in configure.ac Signed-off-by: André Roth --- configure.ac | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/configure.ac

[PATCH 2/4] libdvbv5: cleanup parser API

2014-04-15 Thread André Roth
- fix initialization of dvb_table_initializers - check return value of dvb_desc_parse - allocate table inside the parser - remove unneeded table_length argument Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_eit.h| 2 +- lib/include/libdvbv5/cat.h | 2 +- lib/include

[PATCH 3/4] libdvbv5: short API description

2014-04-15 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/dvb-scan.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/lib/include/libdvbv5/dvb-scan.h b/lib/include/libdvbv5/dvb-scan.h index f0af9d7..8f0e553 100644 --- a/lib/include/libdvbv5/dvb-scan.h +++ b/lib/include

[PATCH 1/4] libdvbv5: move table parsers to separate directory

2014-04-15 Thread André Roth
move the dvb table parsers from the descriptors/ directory to tables/ to have a nice and clear separation. Signed-off-by: André Roth --- lib/libdvbv5/Makefile.am| 42 - lib/libdvbv5/{descriptors => tables}/atsc_eit.c | 0 lib/libdv

[PATCH 3/7] libdvbv5: make crc32 public

2014-04-09 Thread André Roth
applications reading dvb files might want to check crc, therefore provide the crc32 function in the header files. Signed-off-by: André Roth --- lib/{ => include}/libdvbv5/crc32.h |0 lib/libdvbv5/Makefile.am |1 + lib/libdvbv5/crc32.c |2 +- lib/libdvbv5/

[PATCH 5/7] libdvbv5: cleanup table parsers

2014-04-09 Thread André Roth
- make the code look similar - check for correct table ID - ignore null packets with ID 0x1fff - return table length, or: - return error code on error - update / fix Copyrights Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_eit.h |1 - lib/include/libdvbv5/descriptors.h |1

[PATCH 4/7] libdvbv5: make dvb_table_filter_free public

2014-04-09 Thread André Roth
make dvb_table_filter_free public so it can be used by applications. fix potential double free. Signed-off-by: André Roth --- lib/include/libdvbv5/dvb-scan.h |2 ++ lib/libdvbv5/dvb-scan.c | 10 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/include

[PATCH 6/7] libdvbv5: cleanup printing of tables and descriptors

2014-04-09 Thread André Roth
- use log info for table and descpritor printing - cleanup 'out of memory' logs - fix error condition in desc_ts_info Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_header.h |2 +- lib/libdvbv5/descriptors.c |4 +- li

[PATCH 1/7] libdvbv5: reunite atsc_table_header and dvb_table_header

2014-04-09 Thread André Roth
this solves the ambiguity when parsing the dvb/atsc header in dvb-scan.c Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_eit.h|2 +- lib/include/libdvbv5/atsc_header.h | 39 ++ lib/include/libdvbv5/header.h |5 ++-- lib/include

[PATCH 2/7] libdvbv5: fix asprintf compile warning in dvbv5-scan

2014-04-09 Thread André Roth
Signed-off-by: André Roth --- utils/dvb/dvbv5-scan.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-scan.c b/utils/dvb/dvbv5-scan.c index 501b332..7eb3bf5 100644 --- a/utils/dvb/dvbv5-scan.c +++ b/utils/dvb/dvbv5-scan.c @@ -407,6 +407,7 @@ int main

[PATCH 7/7] libdvbv5: rename descriptor functions

2014-04-09 Thread André Roth
prefix the descriptor functions with dvb_desc for a nice API and code completion support Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h |6 +++--- lib/libdvbv5/descriptors.c |6 +++--- lib/libdvbv5/descriptors/atsc_eit.c |6 +++--- lib/libdvbv5

[PATCH 4/8] libdvbv5: allow table parsers to get specific pointer to table struct

2014-03-30 Thread André Roth
this will allow simplifying the parser functions and to return the number of bytes read or an error code. Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_eit.h | 2 +- lib/include/libdvbv5/cat.h | 2 +- lib/include/libdvbv5/descriptors.h | 2 +- lib/include/libdvbv5

[PATCH 2/8] libdvbv5: use DVB_DESC_HEADER macro in all descriptors

2014-03-30 Thread André Roth
the first fields of a descriptor need to be the type, length and the next pointer. in order to prevent changing these fields by accident, provide them in a macro. Signed-off-by: André Roth --- lib/include/libdvbv5/desc_atsc_service_location.h | 7 ++- lib/include/libdvbv5/desc_ca.h

[PATCH 3/8] libdvbv5: make dvb_desc_default_init and dvb_desc_default_print private

2014-03-30 Thread André Roth
dvb_desc_default_init and dvb_desc_default_print are used internaly only, remove them from the header file. add extern "C" to the parser functions, so they can be used from C++ directly. Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h | 16 li

[PATCH 6/8] libdvbv5: remove unneeded includes

2014-03-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors/desc_atsc_service_location.c | 1 - lib/libdvbv5/descriptors/desc_ca.c| 1 - lib/libdvbv5/descriptors/desc_ca_identifier.c | 1 - lib/libdvbv5/descriptors/desc_cable_delivery.c| 1 - lib/libdvbv5

[PATCH 8/8] libdvbv5: add support for tables with multiple ts_id and section gaps

2014-03-30 Thread André Roth
set to 1 in the dvb_table_filter struct. - make struct dvb_table_filter public - use more generic void * for tables - make dvb_read_sections public - fix continuous parsing when table_length > 0 - fix logging Signed-off-by: André Roth --- lib/include/libdvbv5/dvb-scan.h | 25 -

[PATCH 7/8] libdvbv5: fix lost ressource in atsc_eit

2014-03-30 Thread André Roth
if the title of the EIT event is longer than the available data, make sure the allocated buffer is not lost Signed-off-by: André Roth --- lib/libdvbv5/descriptors/atsc_eit.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libdvbv5/descriptors/atsc_eit.c b/lib

[PATCH 5/8] libdvbv5: descriptor parser return int

2014-03-30 Thread André Roth
If parsing a descriptor fails, let the outside world know. Returning 0 means success, negative values indicate a parsing error. Free allocated memory on error. Signed-off-by: André Roth --- lib/include/libdvbv5/desc_atsc_service_location.h | 2 +- lib/include/libdvbv5/desc_ca.h

[PATCH 1/8] libdvbv5: cleanup printing tables and descriptors

2014-03-30 Thread André Roth
- log hex values where appropriate - cleanup indents Signed-off-by: André Roth --- lib/libdvbv5/descriptors.c | 6 +-- lib/libdvbv5/descriptors/cat.c | 2 +- .../descriptors/desc_atsc_service_location.c | 1 - lib/libdvbv5/descriptors

Re: [PATCH 11/11] libdvbv5: fix PMT parser

2014-03-25 Thread André Roth
On Tue, 25 Mar 2014 21:51:49 +0100 Bjørn Mork wrote: > > - * Copyright (c) 2011-2012 - Mauro Carvalho Chehab > > - * Copyright (c) 2012 - Andre Roth > > + * Copyright (c) 2013 - Andre Roth > > * > > * This program is free software; you can redistribute it and/or > > * modify it under the

[PATCH 07/11] libdvbv5: fix dvb_parse_descriptors and make dvb_desc_init private

2014-03-25 Thread André Roth
- set list pointer to NULL in case of an error - improve size checking - dvb_desc_init is used only internal, remove from header Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h | 2 -- lib/libdvbv5/descriptors.c | 44 ++ 2 files

[PATCH 11/11] libdvbv5: fix PMT parser

2014-03-25 Thread André Roth
- check for correct table ID - parse all descriptos - improve table printing Signed-off-by: André Roth --- lib/include/libdvbv5/pmt.h | 10 -- lib/libdvbv5/descriptors/pmt.c | 80 -- 2 files changed, 61 insertions(+), 29 deletions(-) diff --git a

[PATCH 08/11] libdvbv5: add attribute packed to structs and unions

2014-03-25 Thread André Roth
__attribute__((packed)) is needed for nested structs and unions to get the correct size. Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_header.h| 2 +- lib/include/libdvbv5/desc_atsc_service_location.h | 4 ++-- lib/include/libdvbv5/desc_cable_delivery.h| 8

[PATCH 04/11] libdvbv5: fix EIT parsing

2014-03-25 Thread André Roth
the dvb_table_eit_event now contains the service_id, indicating where the events belong to. Signed-off-by: André Roth --- lib/include/descriptors/eit.h | 3 ++- lib/libdvbv5/descriptors/eit.c | 35 ++- 2 files changed, 28 insertions(+), 10 deletions(-) diff

[PATCH 06/11] libdvbv5: remove header files from SOURCES in Makefile.am

2014-03-25 Thread André Roth
The header files are not needed in the Makefile.am since automake finds the dependencies automatically. This is not needed for installing header files either. Signed-off-by: André Roth --- lib/libdvbv5/Makefile.am | 87 1 file changed, 43

[PATCH 09/11] libdvbv5: add parser for CAT

2014-03-25 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/cat.h | 51 ++ lib/libdvbv5/Makefile.am | 2 ++ lib/libdvbv5/descriptors.c | 2 ++ lib/libdvbv5/descriptors/cat.c | 72 ++ 4 files changed, 127 insertions

[PATCH 10/11] libdvbv5: add parser for ca and ca_identifier descriptors

2014-03-25 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/desc_ca.h| 63 ++ lib/include/libdvbv5/desc_ca_identifier.h | 55 +++ lib/libdvbv5/Makefile.am | 10 +++-- lib/libdvbv5/descriptors.c| 18

[PATCH 01/11] libdvbv5: support info info log via dvb_loginfo

2014-03-25 Thread André Roth
dvb_loginfo log support without setting output color. Signed-off-by: André Roth --- lib/include/dvb-log.h | 3 +++ lib/libdvbv5/dvb-log.c | 26 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/lib/include/dvb-log.h b/lib/include/dvb-log.h index

[PATCH 02/11] libdvbv5: fix asprintf compile warnings

2014-03-25 Thread André Roth
- allow logging in dvb_vchannel - get rid of compile warings about unused asprintf return value Signed-off-by: André Roth --- lib/libdvbv5/dvb-demux.c | 8 ++-- lib/libdvbv5/dvb-fe.c| 8 ++-- lib/libdvbv5/dvb-file.c | 31 +-- utils/dvb/dvbv5-zap.c

[PATCH 03/11] libdvbv5: mpeg elementary stream parsers

2014-03-25 Thread André Roth
Implement parsers for mpeg TS, PES and ES Signed-off-by: André Roth --- lib/include/descriptors/mpeg_es.h | 109 + lib/include/descriptors/mpeg_pes.h | 111 + lib/include/descriptors/mpeg_ts.h | 79 + lib/libdvbv5

[PATCH 2/2] libdvbv5: service location descriptor support

2014-01-08 Thread André Roth
- implement the service location descriptor (0xa1) - small cleanups Signed-off-by: André Roth --- lib/include/descriptors.h| 4 +- lib/include/descriptors/desc_service_location.h | 68 lib/libdvbv5/descriptors/desc_service_location.c | 79

[PATCH 1/2] libdvbv5: fix reading multisection tables

2014-01-08 Thread André Roth
contain the same table id. In EIT for example, the id designates the corresponding service. Thus, allow the table id to differ. Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/lib/libdvbv5/dvb

[PATCH 2/3] libdvbv5: implement MGT table parser

2014-01-08 Thread André Roth
The Master Guide Table is used in ATSC. Implementation according to specs A/65:2009 Signed-off-by: André Roth --- lib/include/descriptors/mgt.h | 79 +++ lib/libdvbv5/Makefile.am | 3 +- lib/libdvbv5/descriptors.c | 1 + lib/libdvbv5/descriptors/mgt.c | 140

[PATCH 3/3] libdvbv5: implement ATSC EIT

2014-01-08 Thread André Roth
ATSC has a different EIT table then DVB. This implements the parser according to secifications defined in A/65:2009. Signed-off-by: André Roth --- lib/include/descriptors/atsc_eit.h | 90 +++ lib/libdvbv5/Makefile.am| 4 +- lib/libdvbv5/descriptors.c

[PATCH 1/3] libdvbv5: implement ATSC standard header

2014-01-08 Thread André Roth
The ATSC standard header is slightly different from the one used in DVB. This implements the parser for it, and will be used by the VCT table for example. Signed-off-by: André Roth --- lib/include/descriptors/atsc_header.h | 63 ++ lib/libdvbv5/descriptors

Re: [PATCH 09/18] libdvbv5: implement ATSC EIT

2014-01-08 Thread André Roth
> > +void atsc_table_eit_init(struct dvb_v5_fe_parms *parms, const uint8_t > > *buf, ssize_t buflen, uint8_t *table, ssize_t *table_length) > > +{ > > + const uint8_t *p = buf; > > + struct atsc_table_eit *eit = (struct atsc_table_eit *) table; > > + struct atsc_table_eit_event **head; > >

[PATCH 08/11] libdvbv5: make dvb_desc_default_init and dvb_desc_default_print private

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h | 16 lib/libdvbv5/descriptors.c |4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/include/libdvbv5/descriptors.h b/lib/include/libdvbv5/descriptors.h index ae33fda

[PATCH 09/11] libdvbv5: use TABLE_INIT macro

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h |2 +- lib/libdvbv5/descriptors.c | 24 +--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/include/libdvbv5/descriptors.h b/lib/include/libdvbv5/descriptors.h index d5feb4f

[PATCH 11/11] libdvbv5: remove unneeded includes

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors/desc_atsc_service_location.c |1 - lib/libdvbv5/descriptors/desc_ca.c|1 - lib/libdvbv5/descriptors/desc_ca_identifier.c |1 - lib/libdvbv5/descriptors/desc_cable_delivery.c|1 - lib

[PATCH 10/11] libdvbv5: descriptor parser return int

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/desc_atsc_service_location.h |2 +- lib/include/libdvbv5/desc_ca.h|2 +- lib/include/libdvbv5/desc_ca_identifier.h |2 +- lib/include/libdvbv5/desc_cable_delivery.h|2 +- lib

[PATCH 06/11] libdvbv5: cleanup printing tables and descriptors

2014-01-04 Thread André Roth
- log hex values where appropriate - cleanup indents Signed-off-by: André Roth --- lib/libdvbv5/descriptors.c|4 ++-- lib/libdvbv5/descriptors/cat.c|2 +- lib/libdvbv5/descriptors/desc_atsc_service_location.c |1 - lib/libdvbv5

[PATCH 04/11] libdvbv5: add parser for ca and ca_identifier descriptors

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/desc_ca.h| 63 lib/include/libdvbv5/desc_ca_identifier.h | 55 + lib/libdvbv5/Makefile.am | 10 ++-- lib/libdvbv5/descriptors.c| 18

[PATCH 05/11] libdvbv5: fix PMT parser

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/pmt.h |6 +- lib/libdvbv5/descriptors/pmt.c | 22 +++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/lib/include/libdvbv5/pmt.h b/lib/include/libdvbv5/pmt.h index f1b7cef..a2183ac 100644 --- a

[PATCH 03/11] libdvbv5: add parser for CAT

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/cat.h | 51 +++ lib/libdvbv5/Makefile.am |2 ++ lib/libdvbv5/descriptors.c |2 ++ lib/libdvbv5/descriptors/cat.c | 66 4 files changed, 121 insertions

[PATCH 02/11] libdvbv5: add attribute packed to structs and unions

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/atsc_header.h|2 +- lib/include/libdvbv5/desc_atsc_service_location.h |4 ++-- lib/include/libdvbv5/desc_cable_delivery.h|8 lib/include/libdvbv5/desc_event_extended.h|4 ++-- lib/include

[PATCH 07/11] libdvbv5: use DVB_DESC_HEADER macro in all descriptors

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/desc_atsc_service_location.h |7 ++- lib/include/libdvbv5/desc_ca.h|7 ++- lib/include/libdvbv5/desc_ca_identifier.h |7 ++- lib/include/libdvbv5/desc_cable_delivery.h|7

[PATCH 01/11] libdvbv5: fix dvb_parse_descriptors and make dvb_desc_init private

2014-01-04 Thread André Roth
Signed-off-by: André Roth --- lib/include/libdvbv5/descriptors.h |2 -- lib/libdvbv5/descriptors.c | 44 ++-- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/lib/include/libdvbv5/descriptors.h b/lib/include/libdvbv5/descriptors.h

[PATCH 17/18] libdvbv5: remove header files from SOURCES in Makefile.am

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/Makefile.am | 87 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am index ddf9ea1..8f89531 100644 --- a/lib/libdvbv5/Makefile.am +++ b/lib

[PATCH 18/18] libdvbv5: README updated for shared libdvbv5

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- README| 8 README.libv4l | 12 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README b/README index 000..a9f8089 100644 --- a/README +++ b/README @@ -3,13 +3,13 @@ v4l-utils Linux V4L2 and DVB API utilities and

[PATCH 09/18] libdvbv5: implement ATSC EIT

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/atsc_eit.h | 90 + lib/include/descriptors/atsc_header.h | 63 +++ lib/libdvbv5/Makefile.am | 4 +- lib/libdvbv5/descriptors.c | 2 + lib/libdvbv5/descriptors/atsc_eit.c

[PATCH 06/18] libdvbv5: implement dvb_fe_dummy for logging

2013-12-30 Thread André Roth
The dvbv5 functions use the dvb_v5_fe_parms struct for logging. This struct is normally obtained by opening a dvb device. For situations where the opening of a dvb device is not desired, the dvb_fe_dummy can be used. Signed-off-by: André Roth --- lib/include/descriptors.h | 6 ++ lib

[PATCH 07/18] libdvbv5: fix EIT parsing

2013-12-30 Thread André Roth
the dvb_table_eit_event now contains the service_id, indicating where the events belong to. Signed-off-by: André Roth --- lib/include/descriptors/eit.h | 3 ++- lib/libdvbv5/descriptors/eit.c | 35 ++- 2 files changed, 28 insertions(+), 10 deletions(-) diff

[PATCH 12/18] libdvbv5: fix missing includes

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-file.c | 1 + lib/libdvbv5/dvb-sat.c | 3 ++- lib/libdvbv5/dvb-scan.c | 1 + lib/libdvbv5/parse_string.c | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index

[PATCH 11/18] libdvbv5: cleanup coding style

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors.c | 2 +- lib/libdvbv5/descriptors/mpeg_pes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdvbv5/descriptors.c b/lib/libdvbv5/descriptors.c index 226349e..f46aa4a 100644 --- a/lib/libdvbv5

[PATCH 10/18] libdvbv5: prefix VCT with atsc_ instead of dvb_

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/vct.h | 30 +++--- lib/include/dvb-scan.h | 2 +- lib/libdvbv5/descriptors.c | 16 lib/libdvbv5/descriptors/vct.c | 37 ++--- lib/libdvbv5/dvb-file.c

[PATCH 02/18] libdvbv5: service location descriptor support

2013-12-30 Thread André Roth
Implement the service location descriptor (0xa1), and small cleanups. Signed-off-by: André Roth --- lib/include/descriptors.h| 4 +- lib/include/descriptors/desc_service_location.h | 69 +++ lib/libdvbv5/Makefile.am | 3

[PATCH 08/18] libdvbv5: implement MGT parser

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mgt.h | 80 lib/libdvbv5/Makefile.am | 1 + lib/libdvbv5/descriptors.c | 2 + lib/libdvbv5/descriptors/mgt.c | 117 + 4 files changed, 200 insertions

[PATCH 15/18] libdvbv5: remove c99 comments

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors/atsc_eit.c | 2 +- lib/libdvbv5/descriptors/desc_service_list.c | 4 +++- lib/libdvbv5/descriptors/desc_service_location.c | 2 +- lib/libdvbv5/dvb-file.c | 21 +++-- lib/libdvbv5

[PATCH 04/18] libdvbv5: mpeg elementary stream parsers

2013-12-30 Thread André Roth
Implement parsers for mpeg TS, PES and ES Signed-off-by: André Roth --- lib/include/descriptors/mpeg_es.h | 109 ++ lib/include/descriptors/mpeg_pes.h | 111 ++ lib/include/descriptors/mpeg_ts.h | 78 + lib

[PATCH 14/18] libdvbv5: cleanup dvb_nit_transport_foreach macro

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/nit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/descriptors/nit.h b/lib/include/descriptors/nit.h index d71a762..4f19c5e 100644 --- a/lib/include/descriptors/nit.h +++ b/lib/include/descriptors/nit.h

[PATCH 13/18] libdvbv5: improve TS parsing

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mpeg_ts.h | 4 ++-- lib/libdvbv5/descriptors/mpeg_ts.c | 11 --- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/include/descriptors/mpeg_ts.h b/lib/include/descriptors/mpeg_ts.h index 54fee69..de4fc3f 100644

[PATCH 01/18] libdvbv5: fix reading multisection tables

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index e9ccc72..520bf9c 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb

[PATCH 03/18] libdvbv5: VCT table cleanup

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/vct.h | 10 ++ lib/libdvbv5/descriptors/vct.c | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/include/descriptors/vct.h b/lib/include/descriptors/vct.h index 6272b43..2d269dc 100644 --- a/lib/include

[PATCH 05/18] libdvbv5: fix NIT structures

2013-12-30 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/nit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/descriptors/nit.h b/lib/include/descriptors/nit.h index f2f6163..d71a762 100644 --- a/lib/include/descriptors/nit.h +++ b/lib/include/descriptors/nit.h

[PATCH 04/13] libdvbv5: fix deadlock on missing table sections

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index 76712d4..9751f9d 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -96,6 +96,10 @@ int

[PATCH 05/13] libdvbv5: eit parsing updated

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors.h | 6 ++ lib/include/descriptors/eit.h | 1 + lib/include/dvb-fe.h | 2 ++ lib/libdvbv5/descriptors.c | 1 + lib/libdvbv5/descriptors/eit.c | 28 +++- lib/libdvbv5/dvb-fe.c | 7

[PATCH 07/13] libdvbv5: MGT parser

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mgt.h | 82 ++ lib/libdvbv5/Makefile.am | 1 + lib/libdvbv5/descriptors.c | 1 + lib/libdvbv5/descriptors/mgt.c | 113 + 4 files changed, 197 insertions

[PATCH 02/13] libdvbv5: ATSC VCT table support

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors.h| 4 +- lib/include/descriptors/desc_service_location.h | 70 +++ lib/include/descriptors/vct.h| 5 +- lib/libdvbv5/Makefile.am | 3 +- lib/libdvbv5

[PATCH 03/13] libdvbv5: mpeg elementary stream parsers

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mpeg_es.h | 109 ++ lib/include/descriptors/mpeg_pes.h | 112 ++ lib/include/descriptors/mpeg_ts.h | 79 ++ lib/include/descriptors/nit.h | 4 +- lib

[PATCH 06/13] libdvbv5: fix eit times

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors/eit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libdvbv5/descriptors/eit.c b/lib/libdvbv5/descriptors/eit.c index d13b14c..e70cf3b 100644 --- a/lib/libdvbv5/descriptors/eit.c +++ b/lib/libdvbv5/descriptors

[PATCH 09/13] libdvbv5: fix section counting

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index bd9d2fb..6f3def6 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -208,7 +208,7 @@ int

[PATCH 01/13] libdvbv5: fix reading multisection tables

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-scan.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c index e9ccc72..af3a052 100644 --- a/lib/libdvbv5/dvb-scan.c +++ b/lib/libdvbv5/dvb-scan.c @@ -187,15

[PATCH 12/13] libdvbv5: fix missing includes

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/dvb-file.c | 1 + lib/libdvbv5/dvb-sat.c | 1 + lib/libdvbv5/dvb-scan.c | 1 + lib/libdvbv5/parse_string.c | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c index 9abb1f7..d5b00e2 100644

[PATCH 11/13] libdvbv5: fix double entry in Makefile.am

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libdvbv5/Makefile.am b/lib/libdvbv5/Makefile.am index 368baf8..dc5005f 100644 --- a/lib/libdvbv5/Makefile.am +++ b/lib/libdvbv5/Makefile.am @@ -47,7 +47,6

[PATCH 13/13] libdvbv5: improve TS parsing

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/mpeg_ts.h | 4 ++-- lib/libdvbv5/descriptors/mpeg_ts.c | 11 --- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/include/descriptors/mpeg_ts.h b/lib/include/descriptors/mpeg_ts.h index 2bb570b..f332a58 100644

[PATCH 08/13] libdvbv5: ATSC EIT

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/include/descriptors/atsc_eit.h | 91 + lib/include/descriptors/atsc_header.h | 64 +++ lib/include/descriptors/mgt.h | 25 +++--- lib/include/descriptors/vct.h | 39 - lib/include/dvb-scan.h

[PATCH 10/13] libdvbv5: cleanup coding style

2013-12-28 Thread André Roth
Signed-off-by: André Roth --- lib/libdvbv5/descriptors.c | 2 +- lib/libdvbv5/descriptors/mpeg_pes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdvbv5/descriptors.c b/lib/libdvbv5/descriptors.c index 6df8b8b..b5bc9b2 100644 --- a/lib/libdvbv5

Re: [PATCH 0/3] Some improvements/fixes for Siano driver

2013-09-12 Thread André Roth
On Thu, 12 Sep 2013 16:59:57 -0300 Mauro Carvalho Chehab wrote: Tested-by: André Roth > I got a few reports those days about Siano regressions/issues. > > The first one was reported at: >https://bugzilla.kernel.org/show_bug.cgi?id=60645 > > While its fix was alr

Re: [PATCH 4/3] [media] siano: Use the default firmware for Stellar

2013-09-12 Thread André Roth
On Thu, 12 Sep 2013 17:04:07 -0300 Mauro Carvalho Chehab wrote: Tested-by: André Roth > The Stellar firmware load routine is different. Improve it to use > the default firmware, if no modprobe parameter tells otherwise. > > Signed-off-by: Mauro Carvalho Chehab > --- >

Re: [PATCH 3/3] [media] siano: Fix initialization for Stellar models

2013-09-12 Thread André Roth
On Thu, 12 Sep 2013 17:00:00 -0300 Mauro Carvalho Chehab wrote: Tested-by: André Roth > Since kernel 3.8, the initialization for Stellar (sms1000) > devices are broken. > > Those devices have a behaviour different than usual sms1100 > and sms2270: they start with one USB ID (

Re: [PATCH 3/3] [media] siano: Fix initialization for Stellar models

2013-09-12 Thread André Roth
On Thu, 12 Sep 2013 17:00:00 -0300 Mauro Carvalho Chehab wrote: Tested-by: André Roth > Since kernel 3.8, the initialization for Stellar (sms1000) > devices are broken. > > Those devices have a behaviour different than usual sms1100 > and sms2270: they start with one USB ID (

  1   2   >