svn commit: r468158 - head/graphics/openimageio/files

Jan Beich jbeich at FreeBSD.org
Tue Apr 24 00:17:54 UTC 2018


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"


More information about the svn-ports-head mailing list