gfto / libtsfuncs Goto Github PK
View Code? Open in Web Editor NEWlibtsfuncs is a library for mpeg PSI parsing and generation.
Home Page: http://georgi.unixsol.org/programs/libtsfuncs/
License: MIT License
libtsfuncs is a library for mpeg PSI parsing and generation.
Home Page: http://georgi.unixsol.org/programs/libtsfuncs/
License: MIT License
There is some little patch:
diff --git a/crc.c b/crc.c
index 6f9af50..3b86af1 100644
--- a/crc.c
+++ b/crc.c
@@ -46,7 +46,7 @@ uint32_t ts_crc32(uint8_t *data, int data_size) {
return crc;
}
-u_int32_t ts_crc32_section(struct ts_section_header *section_header) {
+uint32_t ts_crc32_section(struct ts_section_header *section_header) {
return ts_crc32(section_header->section_data, section_header->section_data_len);
}
diff --git a/tsfuncs.c b/tsfuncs.c
index 6d78479..84b94cf 100644
--- a/tsfuncs.c
+++ b/tsfuncs.c
@@ -265,7 +265,7 @@ uint8_t *ts_packet_header_parse(uint8_t *ts_packet, struct ts_header *ts_header)
if (!ts_header->payload_field && ts_header->adapt_len > 183)
goto return_error;
- if (ts_header->payload_offset > TS_MAX_PAYLOAD_SIZE) // Validity check
+ if (ts_header->payload_offset > TS_PACKET_SIZE) // Validity check
goto return_error;
ts_header->payload_size = TS_PACKET_SIZE - ts_header->payload_offset;
Hi,
In the current "tsfuncs.h" header file, only functions for DVB-C are available:
I suggest to add the corresponding:
Thank you!
Hi,
My compiler complained about a shift operation, and I believe the line 495 of descs.c needs a small change, as <<
has a higher precedence than &
:
Replacing
lcn = data[i+2] &~ 0xc0 << 8; // 11xxxxxx
by
lcn = (data[i+2] & ~0xc0) << 8; // 11xxxxxx
looks more like the original intent of the code line.
Hi @gfto ,
I'm interested in add support for the HbbTV descriptor (AIT stream).
You know about the easier way to generate it?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.