From owner-svn-ports-all@freebsd.org Tue Apr 24 13:56:53 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 5D560FA560A; Tue, 24 Apr 2018 13:56:53 +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 1412969B88; Tue, 24 Apr 2018 13:56:53 +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 0F0D413FDA; Tue, 24 Apr 2018 13:56:53 +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 w3ODuqEF031463; Tue, 24 Apr 2018 13:56:52 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3ODuqHN031462; Tue, 24 Apr 2018 13:56:52 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201804241356.w3ODuqHN031462@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 24 Apr 2018 13:56:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468205 - head/audio/cmus/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/audio/cmus/files X-SVN-Commit-Revision: 468205 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: Tue, 24 Apr 2018 13:56:53 -0000 Author: jbeich Date: Tue Apr 24 13:56:52 2018 New Revision: 468205 URL: https://svnweb.freebsd.org/changeset/ports/468205 Log: audio/cmus: unbreak with ffmpeg 4.0 checking for FFMPEG_LIBS (pkg-config)... -L/usr/local/lib -lavformat -lavcodec checking for FFMPEG_CFLAGS (pkg-config)... -I/usr/local/include checking for header ... yes checking for successful build of ffmpeg.c... no [...] ip/ffmpeg.c:255:29: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED' if (codec->capabilities & CODEC_CAP_TRUNCATED) ^ ip/ffmpeg.c:256:17: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED' cc->flags |= CODEC_FLAG_TRUNCATED; ^ PR: 227726 Obtained from: upstream (via Greg V) Added: head/audio/cmus/files/patch-ip_ffmpeg.c (contents, props changed) Added: head/audio/cmus/files/patch-ip_ffmpeg.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/cmus/files/patch-ip_ffmpeg.c Tue Apr 24 13:56:52 2018 (r468205) @@ -0,0 +1,15 @@ +https://github.com/cmus/cmus/commit/b595b8cd7fee + +--- ip/ffmpeg.c.orig 2016-11-20 12:29:46 UTC ++++ ip/ffmpeg.c +@@ -252,8 +252,8 @@ static int ffmpeg_open(struct input_plugin_data *ip_da + break; + } + +- if (codec->capabilities & CODEC_CAP_TRUNCATED) +- cc->flags |= CODEC_FLAG_TRUNCATED; ++ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ cc->flags |= AV_CODEC_FLAG_TRUNCATED; + + #if (LIBAVCODEC_VERSION_INT < ((53<<16)+(8<<8)+0)) + if (avcodec_open(cc, codec) < 0) {