From owner-svn-ports-all@freebsd.org Fri May 4 11:39:59 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FA99FAA0D5; Fri, 4 May 2018 11:39:59 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4DC683F74; Fri, 4 May 2018 11:39:58 +0000 (UTC) (envelope-from jbeich@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AE75265FF; Fri, 4 May 2018 11:39:58 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w44BdwP2053541; Fri, 4 May 2018 11:39:58 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w44BdwYP053539; Fri, 4 May 2018 11:39:58 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201805041139.w44BdwYP053539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 4 May 2018 11:39:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469015 - in head/multimedia/bino: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/multimedia/bino: . files X-SVN-Commit-Revision: 469015 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 11:39:59 -0000 Author: jbeich Date: Fri May 4 11:39:58 2018 New Revision: 469015 URL: https://svnweb.freebsd.org/changeset/ports/469015 Log: multimedia/bino: unbreak with ffmpeg 4.0 media_object.cpp:908:60: error: use of undeclared identifier 'CODEC_CAP_DR1' if (lowres || (codec && (codec->capabilities & CODEC_CAP_DR1))) ^ media_object.cpp:909:37: error: use of undeclared identifier 'CODEC_FLAG_EMU_EDGE' codec_ctx->flags |= CODEC_FLAG_EMU_EDGE; ^ PR: 227726 Reported by: antoine (via exp-run) Added: head/multimedia/bino/files/patch-src_media__object.cpp (contents, props changed) Modified: head/multimedia/bino/Makefile (contents, props changed) Modified: head/multimedia/bino/Makefile ============================================================================== --- head/multimedia/bino/Makefile Fri May 4 10:43:21 2018 (r469014) +++ head/multimedia/bino/Makefile Fri May 4 11:39:58 2018 (r469015) @@ -13,8 +13,6 @@ COMMENT= 3D video player with multi-display support LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= fails to build with ffmpeg 4.0 - LIB_DEPENDS= libass.so:multimedia/libass \ libavformat.so:multimedia/ffmpeg \ libopenal.so:audio/openal-soft Added: head/multimedia/bino/files/patch-src_media__object.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/bino/files/patch-src_media__object.cpp Fri May 4 11:39:58 2018 (r469015) @@ -0,0 +1,20 @@ +media_object.cpp:908:60: error: use of undeclared identifier 'CODEC_CAP_DR1' + if (lowres || (codec && (codec->capabilities & CODEC_CAP_DR1))) + ^ +media_object.cpp:909:37: error: use of undeclared identifier 'CODEC_FLAG_EMU_EDGE' + codec_ctx->flags |= CODEC_FLAG_EMU_EDGE; + ^ + +--- src/media_object.cpp.orig 2016-11-30 19:18:54 UTC ++++ src/media_object.cpp +@@ -905,8 +905,10 @@ void media_object::open(const std::string &url, const + #ifdef FF_API_LOWRES + lowres = codec_ctx->lowres; + #endif ++#ifdef FF_API_EMU_EDGE + if (lowres || (codec && (codec->capabilities & CODEC_CAP_DR1))) + codec_ctx->flags |= CODEC_FLAG_EMU_EDGE; ++#endif + } + // Find and open the codec. AV_CODEC_ID_TEXT is a special case: it has no decoder since it is unencoded raw data. + if (codec_ctx->codec_id != AV_CODEC_ID_TEXT && (!codec || (e = avcodec_open2(codec_ctx, codec, NULL)) < 0))