Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2018 00:17:53 +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: r468158 - head/graphics/openimageio/files
Message-ID:  <201804240017.w3O0HrV1019842@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Apr 24 00:17:53 2018
New Revision: 468158
URL: https://svnweb.freebsd.org/changeset/ports/468158

Log:
  graphics/openimageio: unbreak with ffmpeg 4.0
  
  src/ffmpeg.imageio/ffmpeginput.cpp:333:72: error: use of undeclared identifier 'CODEC_CAP_DELAY'
      m_codec_cap_delay = (bool) (m_codec_context->codec->capabilities & CODEC_CAP_DELAY);
                                                                         ^
  
  PR:		227726
  Obtained from:	upstream

Added:
  head/graphics/openimageio/files/patch-src_ffmpeg.imageio_ffmpeginput.cpp   (contents, props changed)

Added: head/graphics/openimageio/files/patch-src_ffmpeg.imageio_ffmpeginput.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/openimageio/files/patch-src_ffmpeg.imageio_ffmpeginput.cpp	Tue Apr 24 00:17:53 2018	(r468158)
@@ -0,0 +1,20 @@
+https://github.com/OpenImageIO/oiio/pull/1926
+
+--- src/ffmpeg.imageio/ffmpeginput.cpp.orig	2017-08-31 04:36:04 UTC
++++ src/ffmpeg.imageio/ffmpeginput.cpp
+@@ -124,6 +124,15 @@ inline int receive_frame(AVCodecContext *avctx, AVFram
+ }
+ #endif
+ 
++
++// Changes for ffmpeg 4.0
++#define USE_FFMPEG_4_0 (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(58, 18, 100))
++
++#if USE_FFMPEG_4_0
++#  define CODEC_CAP_DELAY AV_CODEC_CAP_DELAY
++#endif
++
++
+ #include <boost/thread/once.hpp>
+ 
+ #include "OpenImageIO/imageio.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804240017.w3O0HrV1019842>