From 92599dbf7638540b9ed9ff3dbd6f2625c1c3f45f Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Mon, 14 Feb 2011 11:50:09 +0100 Subject: Improved stop detection H262 fps detection bugfix --- command/video.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'command/video.cpp') diff --git a/command/video.cpp b/command/video.cpp index 7d09dd2..d0de34a 100644 --- a/command/video.cpp +++ b/command/video.cpp @@ -406,7 +406,11 @@ int cMarkAdLogo::Detect(int framenumber, int *logoframenumber) int cMarkAdLogo::Process(int FrameNumber, int *LogoFrameNumber) { if (!macontext) return LOGO_ERROR; - if (!macontext->Video.Data.Valid) return LOGO_ERROR; + if (!macontext->Video.Data.Valid) + { + area.status=LOGO_UNINITIALIZED; + return LOGO_ERROR; + } if (!macontext->Video.Info.Width) return LOGO_ERROR; if (!macontext->Video.Info.Height) return LOGO_ERROR; if (!macontext->Config->logoDirectory[0]) return LOGO_ERROR; @@ -862,6 +866,10 @@ MarkAdMarks *cMarkAdVideo::Process(int FrameNumber, int FrameNumberNext) } } } + else + { + logo->SetStatusUninitialized(); + } int hborderframenumber; int hret=hborder->Process(FrameNumber,&hborderframenumber); -- cgit v1.2.3