Added subtable ID and TSDT handling to 'libsi'

This commit is contained in:
Klaus Schmidinger
2004-02-20 13:54:14 +01:00
parent c817c341ce
commit 402184b9da
6 changed files with 90 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* $Id: si.c 1.6 2004/01/24 14:49:00 kls Exp $
* $Id: si.c 1.7 2004/02/20 13:46:12 kls Exp $
* *
***************************************************************************/
@@ -61,6 +61,14 @@ bool CRCSection::CheckCRCAndParse() {
return true;
}
int NumberedSection::getTableIdExtension() const {
return getTableIdExtension(data.getData());
}
int NumberedSection::getTableIdExtension(const unsigned char *d) {
return HILO(((const ExtendedSectionHeader *)d)->table_id_extension);
}
bool NumberedSection::getCurrentNextIndicator() const {
return data.getData<ExtendedSectionHeader>()->current_next_indicator;
}