Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvbpsi: add hack for broken PMT tables
  • Loading branch information
perexg committed Dec 12, 2014
1 parent c6d2a09 commit 9469ef0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/input/mpegts/dvb_psi.c
Expand Up @@ -948,6 +948,14 @@ dvb_table_begin
tvhtrace(mt->mt_name, " section %d last %d ver %d (ver %d st %d incomp %d comp %d)",
*sect, *last, *ver, st->version, st->complete, mt->mt_incomplete, mt->mt_complete);

/* Ignore previous version */
/* This check is for the broken PMT tables where:
* last 0 version 21 = PCR + Audio PID 0x0044
* last 0 version 22 = Audio PID 0x0044, PCR + Video PID 0x0045
*/
if (*last == 0 && st->version - 1 == *ver)
return -1;

/* New version */
if (st->version != *ver) {
if (st->complete == 2)
Expand Down

0 comments on commit 9469ef0

Please sign in to comment.