summaryrefslogtreecommitdiff
path: root/genindex/pes.c
diff options
context:
space:
mode:
authorRichard <richard@ha-server.local>2016-10-03 11:37:01 +0100
committerRichard <richard@ha-server.local>2016-10-03 11:37:01 +0100
commit2fa89c9cda64417940163eefb7e40e6365468b28 (patch)
tree8508cfa1ff5ffe73dc6febc58bc612f4971a7a30 /genindex/pes.c
parent317865ec73fefb0644a581d201c7279a37692bad (diff)
downloadvdr-convert-2fa89c9cda64417940163eefb7e40e6365468b28.tar.gz
vdr-convert-2fa89c9cda64417940163eefb7e40e6365468b28.tar.bz2
genindex:make header error non-fatal, vdr-convert:add -j option, add post conversion subs test
Diffstat (limited to 'genindex/pes.c')
-rw-r--r--genindex/pes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/genindex/pes.c b/genindex/pes.c
index f1a5844..c5931dd 100644
--- a/genindex/pes.c
+++ b/genindex/pes.c
@@ -8,6 +8,9 @@
*-------------------------------------------------------------------------------
* Revision History
* $Log: pes.c,v $
+ * Revision 1.3 2016/10/01 13:32:55 richard
+ * Make header error non fatal
+ *
* Revision 1.2 2016/09/01 15:37:42 richard
* Extensively updated to V0.2 for EN 300 743 compliant subtitles
* added -b and -n flags
@@ -657,8 +660,8 @@ int cPES::Process(const uchar *data, int len)
printf("genindex: OOPs large subs timing offset! %jdms\n",ptsdiff);
}
if (headerSize +2 > (int)sizeof (headerstore)) {
- printf("PES: OOPs huge header! %d at %jd\n",headerSize,ptsnow[type]);
- exit(1);
+ printf("PES: OOPs huge header! %d at %jd - packet dropped\n",headerSize,ptsnow[type]);
+ break;
}
if (overrun) { // continuation packets don't have a PTS AFAIK
DEBUG("PES: Suspect %d bytes left at start of new packet!\n",overrun);