From 5b1ab197ef7c82b6b95bd4c96ceac2443e81e2d7 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sun, 13 Oct 2013 18:26:09 +0200 Subject: Reverted changes in streaminfo.cpp from 2012-09-29 (should fix #1108) Increased intensity value from 100 to 180 Increased HD buffer --- 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 868d6ce..1cfbd37 100644 --- a/command/video.cpp +++ b/command/video.cpp @@ -84,7 +84,7 @@ int cMarkAdLogo::Load(const char *directory, char *file, int plane) } int width,height; - if (fscanf(pFile, "P5\n#C%1i %3i\n%3d %3d\n255\n#", &area.corner,&area.mpixel[plane],&width,&height)!=4) + if (fscanf(pFile, "P5\n#C%1i %4i\n%3d %3d\n255\n#", &area.corner,&area.mpixel[plane],&width,&height)!=4) { fclose(pFile); return -2; @@ -336,11 +336,13 @@ int cMarkAdLogo::Detect(int framenumber, int *logoframenumber) if (extract) return LOGO_NOCHANGE; if (!processed) return LOGO_ERROR; + tsyslog("rp=%5i mp=%5i mpV=%5.f mpI=%5.f i=%3i s=%i",rpixel,mpixel,(mpixel*LOGO_VMARK),(mpixel*LOGO_IMARK),area.intensity,area.status); + if (processed==1) { // if we only have one plane we are "vulnerable" // to very bright pictures, so ignore them... - if (area.intensity>100) return LOGO_NOCHANGE; + if (area.intensity>180) return LOGO_NOCHANGE; } int ret=LOGO_NOCHANGE; -- cgit v1.2.3