[MacPorts] #50693: libre, librem, baresip: update to latest versions, baresip 0.4.11 build fails with ffmpeg 3.0
MacPorts
noreply at macports.org
Mon Feb 29 16:26:36 PST 2016
#50693: libre, librem, baresip: update to latest versions, baresip 0.4.11 build
fails with ffmpeg 3.0
-----------------------------------+-------------------
Reporter: devans@… | Owner: aeh@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: libre librem baresip |
-----------------------------------+-------------------
Comment (by devans@…):
Just one error when compiling baresip with ffmpeg 3.0
{{{
CC [M] build-x86_64/modules/cons/cons.o
modules/avcodec/encode.c:174:23: error: use of undeclared identifier
'PIX_FMT_YUV420P'; did you mean 'VID_FMT_YUV420P'?
st->ctx->pix_fmt = PIX_FMT_YUV420P;
^~~~~~~~~~~~~~~
VID_FMT_YUV420P
/opt/local/include/rem/rem_vid.h:10:2: note: 'VID_FMT_YUV420P' declared
here
VID_FMT_YUV420P = 0, /* planar YUV 4:2:0 12bpp
*/
^
modules/avcodec/encode.c:174:23: warning: implicit conversion from
enumeration type 'enum vidfmt' to different enumeration type 'enum
AVPixelFormat' [-Wenum-conversion]
st->ctx->pix_fmt = PIX_FMT_YUV420P;
~ ^~~~~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [build-x86_64/modules/avcodec/encode.o] Error 1
}}}
After patching this one instance of PIX_FMT_YUV420P to AV_PIX_FMT_YUV420P,
baresip builds without error using either current ffmpeg 2.8.6 or 3.0.
See modified patch attached. Let me know if this is OK to commit.
--
Ticket URL: <https://trac.macports.org/ticket/50693#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list