diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-10-16 22:56:09 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-10-16 22:56:09 +0200 |
commit | 0acaba790948b737a35293e5a9ac91be5de563b0 (patch) | |
tree | ab714b34c0ff1a8f393b1acc6a2116ee4c486f8e /command/video.cpp | |
parent | 93dfddbfa472e3521df8b3b2e04e67f849db6e15 (diff) | |
download | vdr-plugin-markad-0acaba790948b737a35293e5a9ac91be5de563b0.tar.gz vdr-plugin-markad-0acaba790948b737a35293e5a9ac91be5de563b0.tar.bz2 |
Use border detection only on non 4:3 broadcasts
Remove aspectratio changes which are to short
Diffstat (limited to 'command/video.cpp')
-rw-r--r-- | command/video.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/command/video.cpp b/command/video.cpp index 525033e..6e58fb8 100644 --- a/command/video.cpp +++ b/command/video.cpp @@ -479,6 +479,8 @@ int cMarkAdBlackBordersHoriz::Process(int FrameNumber, int *BorderIFrame) if (!macontext) return 0; if (!macontext->Video.Data.Valid) return 0; if (macontext->Video.Info.FramesPerSecond==0) return 0; + // Assumption: If we have 4:3, we should have aspectratio-changes! + if (macontext->Video.Info.AspectRatio.Num==4) return 0; *BorderIFrame=0; int height=macontext->Video.Info.Height-OFFSET; @@ -911,7 +913,7 @@ MarkAdMark *cMarkAdVideo::Process(int FrameNumber, int FrameNumberNext) (macontext->Video.Info.AspectRatio.Den==macontext->Info.AspectRatio.Den)) { char nbuf[20]; - snprintf(nbuf,sizeof(nbuf),"%i)",FrameNumberNext); + snprintf(nbuf,sizeof(nbuf),"%i)*",FrameNumberNext); nbuf[19]=0; strcat(buf,nbuf); AddMark(MT_ASPECTSTART,FrameNumberNext,buf); @@ -928,7 +930,7 @@ MarkAdMark *cMarkAdVideo::Process(int FrameNumber, int FrameNumberNext) else { char nbuf[20]; - snprintf(nbuf,sizeof(nbuf),"%i)",FrameNumber); + snprintf(nbuf,sizeof(nbuf),"%i)?",FrameNumber); nbuf[19]=0; strcat(buf,nbuf); |