From owner-svn-ports-all@freebsd.org Mon Apr 30 15:34:24 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 4529BFAE712; Mon, 30 Apr 2018 15:34:24 +0000 (UTC) (envelope-from cpm@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 E0AAD7C5F4; Mon, 30 Apr 2018 15:34:23 +0000 (UTC) (envelope-from cpm@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 DB719151B9; Mon, 30 Apr 2018 15:34:23 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3UFYN19061811; Mon, 30 Apr 2018 15:34:23 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3UFYNwg061805; Mon, 30 Apr 2018 15:34:23 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201804301534.w3UFYNwg061805@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Mon, 30 Apr 2018 15:34:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468704 - in head/www/iridium: . files X-SVN-Group: ports-head X-SVN-Commit-Author: cpm X-SVN-Commit-Paths: in head/www/iridium: . files X-SVN-Commit-Revision: 468704 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: Mon, 30 Apr 2018 15:34:24 -0000 Author: cpm Date: Mon Apr 30 15:34:23 2018 New Revision: 468704 URL: https://svnweb.freebsd.org/changeset/ports/468704 Log: www/iridium: unbreak with ffmpeg 4.0 PR: 227745 Reported by: jbeich Added: head/www/iridium/files/patch-media_base_decoder__buffer.h (contents, props changed) head/www/iridium/files/patch-media_ffmpeg_ffmpeg__common.cc (contents, props changed) head/www/iridium/files/patch-media_filters_ffmpeg__audio__decodec.cc (contents, props changed) head/www/iridium/files/patch-media_filters_ffmpeg__video__decodec.cc (contents, props changed) Modified: head/www/iridium/Makefile Modified: head/www/iridium/Makefile ============================================================================== --- head/www/iridium/Makefile Mon Apr 30 13:42:14 2018 (r468703) +++ head/www/iridium/Makefile Mon Apr 30 15:34:23 2018 (r468704) @@ -3,7 +3,7 @@ PORTNAME= iridium PORTVERSION= 58.0 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= www MASTER_SITES= https://downloads.iridiumbrowser.de/source/ PKGNAMESUFFIX= -browser Added: head/www/iridium/files/patch-media_base_decoder__buffer.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iridium/files/patch-media_base_decoder__buffer.h Mon Apr 30 15:34:23 2018 (r468704) @@ -0,0 +1,11 @@ +--- media/base/decoder_buffer.h.orig 2018-04-28 17:47:57.057477000 +0200 ++++ media/base/decoder_buffer.h 2018-04-28 17:48:11.847624000 +0200 +@@ -37,7 +37,7 @@ + : public base::RefCountedThreadSafe { + public: + enum { +- kPaddingSize = 32, ++ kPaddingSize = 64, + #if defined(ARCH_CPU_ARM_FAMILY) + kAlignmentSize = 16 + #else Added: head/www/iridium/files/patch-media_ffmpeg_ffmpeg__common.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iridium/files/patch-media_ffmpeg_ffmpeg__common.cc Mon Apr 30 15:34:23 2018 (r468704) @@ -0,0 +1,39 @@ +--- media/ffmpeg/ffmpeg_common.cc.orig 2018-04-28 17:44:34.207381000 +0200 ++++ media/ffmpeg/ffmpeg_common.cc 2018-04-28 17:46:24.946243000 +0200 +@@ -33,7 +33,7 @@ + // Why FF_INPUT_BUFFER_PADDING_SIZE? FFmpeg assumes all input buffers are + // padded. Check here to ensure FFmpeg only receives data padded to its + // specifications. +-static_assert(DecoderBuffer::kPaddingSize >= FF_INPUT_BUFFER_PADDING_SIZE, ++static_assert(DecoderBuffer::kPaddingSize >= AV_INPUT_BUFFER_PADDING_SIZE, + "DecoderBuffer padding size does not fit ffmpeg requirement"); + + // Alignment requirement by FFmpeg for input and output buffers. This need to +@@ -429,11 +429,11 @@ + } else { + codec_context->extradata_size = config.extra_data().size(); + codec_context->extradata = reinterpret_cast( +- av_malloc(config.extra_data().size() + FF_INPUT_BUFFER_PADDING_SIZE)); ++ av_malloc(config.extra_data().size() + AV_INPUT_BUFFER_PADDING_SIZE)); + memcpy(codec_context->extradata, &config.extra_data()[0], + config.extra_data().size()); + memset(codec_context->extradata + config.extra_data().size(), '\0', +- FF_INPUT_BUFFER_PADDING_SIZE); ++ AV_INPUT_BUFFER_PADDING_SIZE); + } + } + +@@ -561,11 +561,11 @@ + } else { + codec_context->extradata_size = config.extra_data().size(); + codec_context->extradata = reinterpret_cast( +- av_malloc(config.extra_data().size() + FF_INPUT_BUFFER_PADDING_SIZE)); ++ av_malloc(config.extra_data().size() + AV_INPUT_BUFFER_PADDING_SIZE)); + memcpy(codec_context->extradata, &config.extra_data()[0], + config.extra_data().size()); + memset(codec_context->extradata + config.extra_data().size(), '\0', +- FF_INPUT_BUFFER_PADDING_SIZE); ++ AV_INPUT_BUFFER_PADDING_SIZE); + } + } + Added: head/www/iridium/files/patch-media_filters_ffmpeg__audio__decodec.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iridium/files/patch-media_filters_ffmpeg__audio__decodec.cc Mon Apr 30 15:34:23 2018 (r468704) @@ -0,0 +1,11 @@ +--- media/filters/ffmpeg_audio_decoder.cc.orig 2018-04-28 14:12:22.084504000 +0200 ++++ media/filters/ffmpeg_audio_decoder.cc 2018-04-28 14:14:19.735316000 +0200 +@@ -53,7 +53,7 @@ + // AVCodecContext.opaque to get the object reference in order to call + // GetAudioBuffer() to do the actual allocation. + static int GetAudioBuffer(struct AVCodecContext* s, AVFrame* frame, int flags) { +- DCHECK(s->codec->capabilities & CODEC_CAP_DR1); ++ DCHECK(s->codec->capabilities & AV_CODEC_CAP_DR1); + DCHECK_EQ(s->codec_type, AVMEDIA_TYPE_AUDIO); + + // Since this routine is called by FFmpeg when a buffer is required for audio Added: head/www/iridium/files/patch-media_filters_ffmpeg__video__decodec.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/iridium/files/patch-media_filters_ffmpeg__video__decodec.cc Mon Apr 30 15:34:23 2018 (r468704) @@ -0,0 +1,16 @@ +--- media/filters/ffmpeg_video_decoder.cc.orig 2018-04-28 14:12:48.579561000 +0200 ++++ media/filters/ffmpeg_video_decoder.cc 2018-04-28 14:16:02.028730000 +0200 +@@ -417,12 +417,11 @@ + codec_context_->thread_type = + FF_THREAD_SLICE | (low_delay ? 0 : FF_THREAD_FRAME); + codec_context_->opaque = this; +- codec_context_->flags |= CODEC_FLAG_EMU_EDGE; + codec_context_->get_buffer2 = GetVideoBufferImpl; + codec_context_->refcounted_frames = 1; + + if (decode_nalus_) +- codec_context_->flags2 |= CODEC_FLAG2_CHUNKS; ++ codec_context_->flags2 |= AV_CODEC_FLAG2_CHUNKS; + + AVCodec* codec = avcodec_find_decoder(codec_context_->codec_id); + if (!codec || avcodec_open2(codec_context_.get(), codec, NULL) < 0) {