diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-11-28 17:39:34 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-11-28 17:39:34 +0100 |
commit | 29ae9ed5dce372362650cd0e61d0c18755b5cf18 (patch) | |
tree | a212e616111cabcc1fa43baed50e89635324b011 /command | |
parent | 5e342fd1ccf18c4c15615f85d7c490435a6b8be0 (diff) | |
download | vdr-plugin-markad-29ae9ed5dce372362650cd0e61d0c18755b5cf18.tar.gz vdr-plugin-markad-29ae9ed5dce372362650cd0e61d0c18755b5cf18.tar.bz2 |
Improved overlap detection by increasing the inspection range
Diffstat (limited to 'command')
-rw-r--r-- | command/markad-standalone.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp index 55d23a5..0032de4 100644 --- a/command/markad-standalone.cpp +++ b/command/markad-standalone.cpp @@ -1182,13 +1182,14 @@ 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 (marks.ReadIndex(directory,isTS,p1->position-frange,frange,&number,&offset,&frame,&iframes)) + if (marks.ReadIndex(directory,isTS,p1->position-frange,frange+overlap,&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,frange,&number,&offset,&frame,&iframes)) + if (marks.ReadIndex(directory,isTS,p2->position-overlap,frange+overlap,&number,&offset,&frame,&iframes)) { if (!ProcessFile2ndPass(&p1,&p2,number,offset,frame,iframes)) break; } |