Georgi Chorbadzhiyski
a041a344b9
Fix compiler warnings.
The fixed warnings are:
bitstream/dvb/sim.h: In function "tlv_find_data":
bitstream/dvb/sim.h:216:5: warning: return discards qualifiers from pointer target type
bitstream/dvb/sim.h: In function "ecmg_validate":
bitstream/dvb/sim.h:389:5: warning: excess elements in scalar initializer
bitstream/dvb/sim.h:389:5: warning: (near initialization for "p_param")
bitstream/dvb/sim.h:389:5: warning: excess elements in scalar initializer
bitstream/dvb/sim.h:389:5: warning: (near initialization for "p_param")
bitstream/dvb/si.h: In function "dvb_string_set":
bitstream/dvb/si.h:174:9: warning: pointer targets in passing argument 1 of "strlen" differ in signedness
/usr/include/string.h:399:15: note: expected "const char *" but argument is of type "const uint8_t *"
bitstream/dvb/si.h:174:9: warning: pointer targets in passing argument 1 of "__strdup" differ in signedness
/usr/include/bits/string2.h:1303:14: note: expected "const char *" but argument is of type "const uint8_t *"
bitstream/dvb/si.h:174:9: warning: pointer targets in return differ in signedness
bitstream/dvb/si.h: In function "dvb_string_get":
bitstream/dvb/si.h:219:25: warning: passing argument 3 of "pf_iconv" discards qualifiers from pointer target type
bitstream/dvb/si.h:219:25: note: expected "char *" but argument is of type "const uint8_t *"
bitstream/dvb/si.h: In function "desc48_get_service":
bitstream/dvb/si.h:742:5: warning: return discards qualifiers from pointer target type
13 years ago
Georgi Chorbadzhiyski
c73bef1583
Change biTStream license to MIT license.
Replace WTFPL with MIT license.
Acked-By: Christophe Massiot <massiot@via.ecp.fr>
Acked-By: Georgi Chorbadzhiyski <gf@unixsol.org>
Acked-By: Jean-Paul Saman <jpsaman@videolan.org>
Acked-By: Rémi Duraffort <ivoire@videolan.org>
13 years ago
Christophe Massiot
7ad38a696f
Rework the descriptors API
This is to avoid the hack with the CAT table, which doesn't have a descs
"header". So there are new functions descl_* to handle descriptor lists
without length. This change is backwards compatible for all tables except
CAT.
13 years ago
Christophe Massiot
6ef82dec8d
* dvb/si.h: Teletext page is usually printed as hex.
13 years ago
Christophe Massiot
e45e5e2701
* ietf/rtp.h: API CHANGE: Renamed RTP cc to seqnum because that's how it is actually called in the RFC, and CC is supposed to be something else. Applications have to be changed. * mpeg/ts.h: Add a missing const.
13 years ago
Christophe Massiot
23757cdcb9
* examples/dvb_print_si.c: Fix typo in printf.
13 years ago
Christophe Massiot
6610d8247a
* examples/rtp_check_cc.c: New example to check the RTP counter.
13 years ago
Christophe Massiot
7114114e00
* examples/mpeg_print_pcr.c: New very basic (but useful) example program which prints the PCR PID of the first PMT.
14 years ago
Christophe Massiot
cd3f285671
* ietf/rtp.h: Fix header extension size calculation.
14 years ago
Georgi Chorbadzhiyski
a6ed936b6b
* Add support for Conditional Access Table
14 years ago
Christophe Massiot
612e3dea81
* dvb/sim.h: Fix compilation warnings. * examples/dvb_ecmg.c: Fix segfault.
14 years ago
Christophe Massiot
a2cc38955e
* dvb_print_si.c: Compare whole tables instead of just the version. Also fix rare segfault.
14 years ago
Christophe Massiot
a0c759a987
* dvb/si.h: Add handling of service list, linkage and private data specifier descriptors, as well as EICTA's LCN and HD_SIMULCAST_LCN. * dvb/si_print.h: Store the last private data specifier and use it to call the private print functions.
14 years ago
Christophe Massiot
2e37c440fd
* mpeg/psi.h: Be more leniant towards invalid PATs.
14 years ago
Christophe Massiot
f37b611ca1
* dvb/si.h: Fix missing XML bracket.
14 years ago
Christophe Massiot
8ecb338999
* dvb/si.h: Fix missing quotes in XML format.
14 years ago
Rémi Duraffort
235eea94de
Makefile: add a DESTDIR variable to ease debian packaging
14 years ago
Christophe Massiot
f6f5de83a8
* dvb/si.h: Properly escape string from XML special chars. * Makefile: Just bail out when called with no argument.
14 years ago
Christophe Massiot
81d595078f
* examples/dvb_print_si.c: Make standard output line-buffered.
14 years ago
Jean-Paul Saman
4a47068520
Update INSTALL documentation with information about 'make install'
14 years ago
Christophe Massiot
a9ce23771d
* ALL: Change the API to allow for different types of print (esp. XML).
14 years ago
Christophe Massiot
98bc2a54f4
* examples/dvb_print_si.c: Fix a major bug when handling TS with a section begginning in the middle of the payload.
14 years ago
Christophe Massiot
a08bae073a
* mpeg/ts.h: Slightly change the API for sections to avoid bugs.
14 years ago
Christophe Massiot
2bfc7f9844
* dvb/sim.h: Simplify the API; allow nested TLVs. * examples: Change examples accordingly.
14 years ago
Christophe Massiot
44df2d61ab
* examples/dvb_print_si.c: Check EIT's consistency.
14 years ago
Christophe Massiot
d2f0a96a78
* mpeg/psi.h: Fix a major bug preventing multi-section tables to be updated.
14 years ago
Christophe Massiot
a0b7103fe4
* dvb/si.h: Fix segfault with malformed text fields.
14 years ago
Christophe Massiot
28fd54b380
* dvb/sim.h, examples/dvb_ecmg.c, examples/dvb_ecmg_test.c: Implement a DVB Simulcrypt ECMG server.
14 years ago
Christophe Massiot
9313f054f3
* mpeg/psi_print.h: Move DVB-specific functions to dvb/si_print.h. * examples/dvb_print_si.c: Fix a number of end-of-lines.
14 years ago
Christophe Massiot
2b64da5e1b
* mpeg/psi.h: Fix a segfault when the number of sections changes. * mpeg/psi.h, dvb/si.h: Add functions to validate if there is enough space for a new substructure. * dvb/si.h: Add support for DVB MJD format. * dvb/si.h: Correctly initialize a byte in SDT sub-structure. * dvb/si.h: Fully implement descriptor 0x48 (service descriptor).
14 years ago
Christophe Massiot
65dd37c33e
* dvb/si.h: Improve validation of SDT.
14 years ago
Christophe Massiot
0b8f86699f
* mpeg/psi.h, dvb/si.h: Add descXX_validate() functions. * mpeg/psi_print.h: Validate descriptors before accessing them. * mpeg/psi.h: Avoid duplicate copies of the CRC32 table. * ALL: Make sure we return booleans. * dvb/si.h: Add support for DVB character sets. * dvb/si.h: Add content delivery descriptors 0x43, 0x44 and 0x5a. * dvb/si.h: Add VBI teletext descriptor 0x46. * examples/dvb_print_si.c: Add support for charset conversion via iconv.
14 years ago
Rémi Duraffort
3df65446c0
Add a Makefile to install/uninstalll everything.
14 years ago
Christophe Massiot
0403c639f3
* mpeg/psi.h: Fix a bug with descriptor 0x05. * mpeg/psi.h, dvb/si.h: Cosmetic changes in print functions. * examples/dvb_print_si.c: New example file to print DVB tables in a TS stream.
14 years ago
Christophe Massiot
088e84d9f3
* mpeg/psi.h: Really fix the infinite loop.
14 years ago
Christophe Massiot
b34ea7f094
* mpeg/psi.h: Fix an infinite loop when receiving an invalid section.
14 years ago
Christophe Massiot
8154e00f62
* ALL: New *_print() set of functions. * ALL (tables): Check CRC only when needed; also check tables coherence. * ALL (descriptors): Add a lot of missing _get_ functions. * ALL (descriptors): Fix off-by-one overflow of structure array. * mpeg/psi.h: Fix off-by-one overflow of PAT program array.
14 years ago
Christophe Massiot
968b0ea049
* Initial import.
14 years ago