summaryrefslogtreecommitdiff
path: root/markad-standalone.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-19 11:18:10 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-19 11:18:10 +0100
commit4477718958200c712d9243f8890edd3aece263da (patch)
tree382757f7af4c826bbb706e95f7d1a0fa075b9376 /markad-standalone.cpp
parentb832246723d664e53102fc0bc3a87739b49a3314 (diff)
downloadvdr-plugin-markad-4477718958200c712d9243f8890edd3aece263da.tar.gz
vdr-plugin-markad-4477718958200c712d9243f8890edd3aece263da.tar.bz2
Added interlace detection for H262
Diffstat (limited to 'markad-standalone.cpp')
-rw-r--r--markad-standalone.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/markad-standalone.cpp b/markad-standalone.cpp
index 823e0ce..26ca9d7 100644
--- a/markad-standalone.cpp
+++ b/markad-standalone.cpp
@@ -167,6 +167,9 @@ bool cMarkAdStandalone::ProcessFile(const char *Directory, int Number)
if (!Directory) return false;
if (!Number) return false;
+ CheckIndex(true);
+ if (abort) return false;
+
int datalen=385024;
uchar data[datalen];
@@ -184,9 +187,6 @@ bool cMarkAdStandalone::ProcessFile(const char *Directory, int Number)
free(fbuf);
if (f==-1) return false;
- CheckIndex(true);
- if (abort) return false;
-
int dataread;
dsyslog("processing file %05i",Number);
@@ -218,11 +218,9 @@ bool cMarkAdStandalone::ProcessFile(const char *Directory, int Number)
{
if (!framecnt)
{
- if (macontext.General.VPid.Type==MARKAD_PIDTYPE_VIDEO_H264)
- {
- isyslog("HDTV %i%c",
- macontext.Video.Info.Height,macontext.Video.Info.Interlaced ? 'i' : 'p');
- }
+ isyslog("%s %i%c",(macontext.Video.Info.Height>576) ? "HDTV" : "SDTV",
+ macontext.Video.Info.Height,
+ macontext.Video.Info.Interlaced ? 'i' : 'p');
if (!marks.Load(Directory,macontext.Video.Info.FramesPerSecond,isTS))
{
AddStartMark();
@@ -757,12 +755,18 @@ cMarkAdStandalone::cMarkAdStandalone(const char *Directory, bool BackupMarks, in
esyslog("no PAT/PMT found -> nothing to process");
abort=true;
}
- macontext.General.APid.Num=0;
+ if (!macontext.Audio.Options.AudioSilenceDetection)
+ {
+ macontext.General.APid.Num=0;
+ }
if (asprintf(&indexFile,"%s/index",Directory)==-1) indexFile=NULL;
}
else
{
- macontext.General.APid.Num=-1;
+ if (macontext.Audio.Options.AudioSilenceDetection)
+ {
+ macontext.General.APid.Num=-1;
+ }
macontext.General.DPid.Num=-1;
macontext.General.VPid.Num=-1;