Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused files iptv_output.[ch] and tsmux.[ch] and related code
  • Loading branch information
linuxstb committed Feb 28, 2013
1 parent 229a8d7 commit 4724e01
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 1,758 deletions.
211 changes: 0 additions & 211 deletions src/iptv_output.c

This file was deleted.

24 changes: 0 additions & 24 deletions src/iptv_output.h

This file was deleted.

39 changes: 0 additions & 39 deletions src/psi.c
Expand Up @@ -110,44 +110,6 @@ psi_section_reassemble(psi_section_t *ps, const uint8_t *tsb, int crc,
}


/**
* PAT parser, from ISO 13818-1
*/
int
psi_parse_pat(service_t *t, uint8_t *ptr, int len,
pid_section_callback_t *pmt_callback)
{
uint16_t prognum;
uint16_t pid;
elementary_stream_t *st;

lock_assert(&t->s_stream_mutex);

if(len < 5)
return -1;

ptr += 5;
len -= 5;

while(len >= 4) {

prognum = ptr[0] << 8 | ptr[1];
pid = (ptr[2] & 0x1f) << 8 | ptr[3];

if(prognum != 0) {
if(service_stream_find(t, pid) == NULL) {
st = service_stream_create(t, pid, SCT_PMT);
st->es_section_docrc = 1;
st->es_got_section = pmt_callback;
}
}
ptr += 4;
len -= 4;
}
return 0;
}


/**
* Append CRC
*/
Expand Down Expand Up @@ -954,7 +916,6 @@ static struct strtab streamtypetab[] = {
{ "DVBSUB", SCT_DVBSUB },
{ "CA", SCT_CA },
{ "PMT", SCT_PMT },
{ "PAT", SCT_PAT },
{ "AAC", SCT_AAC },
{ "MPEGTS", SCT_MPEGTS },
{ "TEXTSUB", SCT_TEXTSUB },
Expand Down
3 changes: 0 additions & 3 deletions src/psi.h
Expand Up @@ -37,9 +37,6 @@ typedef struct psi_section {
void psi_section_reassemble(psi_section_t *ps, const uint8_t *tsb, int crc,
section_handler_t *cb, void *opaque);

int psi_parse_pat(struct service *t, uint8_t *ptr, int len,
pid_section_callback_t *pmt_callback);

int psi_parse_pmt(struct service *t, const uint8_t *ptr, int len, int chksvcid,
int delete);

Expand Down
3 changes: 1 addition & 2 deletions src/tsdemux.c
Expand Up @@ -103,7 +103,6 @@ ts_recv_packet0(service_t *t, elementary_stream_t *st, const uint8_t *tsb)
switch(st->es_type) {

case SCT_CA:
case SCT_PAT:
case SCT_PMT:
if(st->es_section == NULL)
st->es_section = calloc(1, sizeof(struct psi_section));
Expand Down Expand Up @@ -224,7 +223,7 @@ ts_recv_packet1(service_t *t, const uint8_t *tsb, int64_t *pcrp)

if((tsb[3] & 0xc0) ||
(t->s_scrambled_seen && st->es_type != SCT_CA &&
st->es_type != SCT_PAT && st->es_type != SCT_PMT)) {
st->es_type != SCT_PMT)) {

/**
* Lock for descrambling, but only if packet was not in error
Expand Down

0 comments on commit 4724e01

Please sign in to comment.