Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2021 14:23:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255035] multimedia/ffmpeg: fix build with lensfun option enabled
Message-ID:  <bug-255035-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255035

            Bug ID: 255035
           Summary: multimedia/ffmpeg: fix build with lensfun option
                    enabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia@FreeBSD.org
          Reporter: osidorkin@gmail.com
          Assignee: multimedia@FreeBSD.org
             Flags: maintainer-feedback?(multimedia@FreeBSD.org)

Created attachment 224083
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224083&action=
=3Dedit
git diff to make ffmpeg to use lensfun API from the last tagged version
(instead of trunk one)

ffmpeg 4.4 switched to trunk lensfun API that is incompartible with lensfun
version from our ports. So build of ffmpeg with lensfun option enabled fails
with the following message:
libavfilter/vf_lensfun.c:231:119: error: too few arguments to function call,
expected 5, have 3
                lf_modifier_enable_vignetting_correction(lensfun->modifier,
lensfun->aperture, lensfun->focus_distance);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
                                      ^
/usr/local/include/lensfun/lensfun.h:3097:15: note:
'lf_modifier_enable_vignetting_correction' declared here
LF_EXPORT int lf_modifier_enable_vignetting_correction (
              ^
libavfilter/vf_lensfun.c:233:75: error: too few arguments to function call,
expected 3, have 1

and others.

The attached patch rollbacks some upstream changes to make ffmpeg buildable
again.
This patch is intended to be removed after lensfun upgrade.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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