Date: Wed, 2 May 2018 13:26:23 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468833 - head/math/octave-forge-video/files Message-ID: <201805021326.w42DQNsr047051@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Wed May 2 13:26:23 2018 New Revision: 468833 URL: https://svnweb.freebsd.org/changeset/ports/468833 Log: math/octave-forge-video: unbreak with ffmpeg 4.0 AVHandler.cc:246:29: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED' if (codec->capabilities & CODEC_CAP_TRUNCATED) ^ AVHandler.cc:247:30: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED' vstream->codec->flags |= CODEC_FLAG_TRUNCATED; ^ PR: 227726 Reported by: antoine (via exp-run) Added: head/math/octave-forge-video/files/ head/math/octave-forge-video/files/patch-src_AVHandler.cc (contents, props changed) Added: head/math/octave-forge-video/files/patch-src_AVHandler.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/octave-forge-video/files/patch-src_AVHandler.cc Wed May 2 13:26:23 2018 (r468833) @@ -0,0 +1,20 @@ +AVHandler.cc:246:29: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED' + if (codec->capabilities & CODEC_CAP_TRUNCATED) + ^ +AVHandler.cc:247:30: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED' + vstream->codec->flags |= CODEC_FLAG_TRUNCATED; + ^ + +--- src/AVHandler.cc.orig 2017-05-28 14:27:02 UTC ++++ src/AVHandler.cc +@@ -243,8 +243,8 @@ AVHandler::setup_read() + codec_name = codec->name; + + // We can handle truncated bitstreams +- if (codec->capabilities & CODEC_CAP_TRUNCATED) +- vstream->codec->flags |= CODEC_FLAG_TRUNCATED; ++ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ vstream->codec->flags |= AV_CODEC_FLAG_TRUNCATED; + + if (avcodec_open2(vstream->codec, codec, NULL) < 0) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805021326.w42DQNsr047051>