From 0acaba790948b737a35293e5a9ac91be5de563b0 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sat, 16 Oct 2010 22:56:09 +0200 Subject: Use border detection only on non 4:3 broadcasts Remove aspectratio changes which are to short --- command/video.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'command/video.cpp') 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); -- cgit v1.2.3