Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2018 13:56:29 +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: r468203 - head/graphics/gegl/files
Message-ID:  <201804241356.w3ODuTSV031204@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Tue Apr 24 13:56:29 2018
New Revision: 468203
URL: https://svnweb.freebsd.org/changeset/ports/468203

Log:
  graphics/gegl: unbreak with ffmpeg 4.0
  
  ./ff-load.c:312:36: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED'
        if (p->codec->capabilities & CODEC_CAP_TRUNCATED)
                                     ^
  ./ff-load.c:313:26: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED'
          p->enc->flags |= CODEC_FLAG_TRUNCATED;
  
  PR:		227726

Modified:
  head/graphics/gegl/files/patch-operations_external_ff-load.c   (contents, props changed)

Modified: head/graphics/gegl/files/patch-operations_external_ff-load.c
==============================================================================
--- head/graphics/gegl/files/patch-operations_external_ff-load.c	Tue Apr 24 13:56:13 2018	(r468202)
+++ head/graphics/gegl/files/patch-operations_external_ff-load.c	Tue Apr 24 13:56:29 2018	(r468203)
@@ -1,5 +1,6 @@
 https://git.gnome.org/browse/gegl/commit/?id=97067622352e
 https://git.gnome.org/browse/gegl/commit/?id=6d50c42e2c9a
+https://git.gnome.org/browse/gegl/commit/?id=67f14cbbc5d1
 
 --- operations/external/ff-load.c.orig	2012-04-01 11:17:57 UTC
 +++ operations/external/ff-load.c
@@ -39,9 +40,14 @@ https://git.gnome.org/browse/gegl/commit/?id=6d50c42e2
        if (err < 0)
          {
            g_warning ("ff-load: error finding stream info for %s", o->path);
-@@ -312,7 +312,7 @@ prepare (GeglOperation *operation)
-       if (p->codec->capabilities & CODEC_CAP_TRUNCATED)
-         p->enc->flags |= CODEC_FLAG_TRUNCATED;
+@@ -309,10 +309,10 @@ prepare (GeglOperation *operation)
+           g_warning ("codec not found");
+         }
+ 
+-      if (p->codec->capabilities & CODEC_CAP_TRUNCATED)
+-        p->enc->flags |= CODEC_FLAG_TRUNCATED;
++      if (p->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
++        p->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
  
 -      if (avcodec_open (p->enc, p->codec) < 0)
 +      if (avcodec_open2 (p->enc, p->codec, NULL) < 0)



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