summaryrefslogtreecommitdiff
path: root/command
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2011-02-06 09:58:33 +0100
committerJochen Dolze <vdr@dolze.de>2011-02-06 09:58:33 +0100
commitdd033d767434ba7266856de0bcc8d16c372f2220 (patch)
treed79e2aff412a28f077aed31478e4cb8008c274a9 /command
parent0cdd5f421a5d7ad511473bf5d97a5e8c1c2c9c04 (diff)
downloadvdr-plugin-markad-dd033d767434ba7266856de0bcc8d16c372f2220.tar.gz
vdr-plugin-markad-dd033d767434ba7266856de0bcc8d16c372f2220.tar.bz2
Got rid of additional overlap in second pass
Diffstat (limited to 'command')
-rw-r--r--command/markad-standalone.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp
index c32e9a1..349b131 100644
--- a/command/markad-standalone.cpp
+++ b/command/markad-standalone.cpp
@@ -887,20 +887,13 @@ void cMarkAdStandalone::Process2ndPass()
off_t offset;
int number,frame,iframes;
int frange=macontext.Video.Info.FramesPerSecond*120; // 40s + 80s
- int overlap=macontext.Video.Info.FramesPerSecond*10; // 10s
- if (((p1->type & 0xF0)==MT_ASPECTCHANGE) || (p1->type==0))
- {
- dsyslog("ignoring additional overlap");
- overlap=0;
- }
-
- if (marks.ReadIndex(directory,isTS,p1->position-frange,frange+overlap,&number,&offset,&frame,&iframes))
+ if (marks.ReadIndex(directory,isTS,p1->position-frange,frange,&number,&offset,&frame,&iframes))
{
if (!ProcessFile2ndPass(&p1,NULL,number,offset,frame,iframes)) break;
frange=macontext.Video.Info.FramesPerSecond*320; // 160s + 160s
- if (marks.ReadIndex(directory,isTS,p2->position-overlap,frange+overlap,&number,&offset,&frame,&iframes))
+ if (marks.ReadIndex(directory,isTS,p2->position,frange,&number,&offset,&frame,&iframes))
{
if (!ProcessFile2ndPass(&p1,&p2,number,offset,frame,iframes)) break;
}