From owner-svn-ports-head@freebsd.org Sat Apr 9 10:14:51 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10035B090EF; Sat, 9 Apr 2016 10:14:51 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BC98D1BEA; Sat, 9 Apr 2016 10:14:50 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u39AEnVb007658; Sat, 9 Apr 2016 10:14:49 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u39AEngG007657; Sat, 9 Apr 2016 10:14:49 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <201604091014.u39AEngG007657@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Sat, 9 Apr 2016 10:14:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412803 - head/multimedia/vdr/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 10:14:51 -0000 Author: riggs Date: Sat Apr 9 10:14:49 2016 New Revision: 412803 URL: https://svnweb.freebsd.org/changeset/ports/412803 Log: Fix build with libc++ 3.8.0 PR: 208468 Submitted by: dim MFH: 2016Q2 (build fix blanket) Added: head/multimedia/vdr/files/patch-abs-types.diff (contents, props changed) Added: head/multimedia/vdr/files/patch-abs-types.diff ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/vdr/files/patch-abs-types.diff Sat Apr 9 10:14:49 2016 (r412803) @@ -0,0 +1,27 @@ +--- dvbdevice.c.orig ++++ dvbdevice.c +@@ -766,7 +766,7 @@ bool cDvbTuner::SetFrontend(void) + CHECK(ioctl(fd_frontend, FE_SET_VOLTAGE, volt)); + CHECK(ioctl(fd_frontend, FE_SET_TONE, tone)); + } +- frequency = abs(frequency); // Allow for C-band, where the frequency is less than the LOF ++ frequency = abs((int)frequency); // Allow for C-band, where the frequency is less than the LOF + + // DVB-S/DVB-S2 (common parts) + SETCMD(DTV_FREQUENCY, frequency * 1000UL); +--- remux.c.orig 2012-03-02 11:56:49.000000000 +0100 ++++ remux.c 2016-04-02 19:05:34.753289000 +0200 +@@ -890,11 +943,11 @@ int cFrameDetector::Analyze(const uchar + uint32_t Delta = ptsValues[0]; + // determine frame info: + if (isVideo) { +- if (abs(Delta - 3600) <= 1) ++ if (abs((int)Delta - 3600) <= 1) + framesPerSecond = 25.0; + else if (Delta % 3003 == 0) + framesPerSecond = 30.0 / 1.001; +- else if (abs(Delta - 1800) <= 1) { ++ else if (abs((int)Delta - 1800) <= 1) { + if (numFrames > 50) { + // this is a "best guess": if there are more than 50 frames between two I-frames, we assume each "frame" actually contains a "field", so two "fields" make one "frame" + framesPerSecond = 25.0;