[Bug 214644] cad/netgen: switch to multimedia/ffmpeg (2.0 API)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 18 23:28:48 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214644
Bug ID: 214644
Summary: cad/netgen: switch to multimedia/ffmpeg (2.0 API)
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: jbeich at FreeBSD.org
CC: multimedia at FreeBSD.org, stephen at FreeBSD.org
Depends on: 214199
CC: stephen at FreeBSD.org
Building against ffmpeg 3.x requires fixing the following errors:
ngpkg.cpp:2269:12: error: unknown type name 'CodecID'; did you mean
'AVCodecID'?
static CodecID codec_id = CODEC_ID_MPEG1VIDEO;
^~~~~~~
AVCodecID
/usr/local/include/libavcodec/avcodec.h:191:6: note: 'AVCodecID' declared here
enum AVCodecID {
^
ngpkg.cpp:2269:31: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO';
did you mean
'AV_CODEC_ID_MPEG1VIDEO'?
static CodecID codec_id = CODEC_ID_MPEG1VIDEO;
^~~~~~~~~~~~~~~~~~~
AV_CODEC_ID_MPEG1VIDEO
/usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDEO'
declared here
AV_CODEC_ID_MPEG1VIDEO,
^
ngpkg.cpp:2341:28: error: use of undeclared identifier 'PIX_FMT_YUV420P'; did
you mean
'AV_PIX_FMT_YUV420P'?
context->pix_fmt = PIX_FMT_YUV420P;
^~~~~~~~~~~~~~~
AV_PIX_FMT_YUV420P
/usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' declared
here
AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per
2x2 Y samples)
^
ngpkg.cpp:2354:22: error: use of undeclared identifier 'avcodec_alloc_frame'
YUVpicture = avcodec_alloc_frame();
^
ngpkg.cpp:2363:22: error: use of undeclared identifier 'avcodec_alloc_frame'
RGBpicture = avcodec_alloc_frame();
^
ngpkg.cpp:2408:53: error: use of undeclared identifier 'PIX_FMT_RGB24'; did you
mean
'AV_PIX_FMT_RGB24'?
img_convert_ctx = sws_getContext( nx, ny, PIX_FMT_RGB24,
^~~~~~~~~~~~~
AV_PIX_FMT_RGB24
/usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared
here
AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB...
^
ngpkg.cpp:2409:53: error: use of undeclared identifier 'PIX_FMT_YUV420P'; did
you mean
'AV_PIX_FMT_YUV420P'?
nx, ny, PIX_FMT_YUV420P,
^~~~~~~~~~~~~~~
AV_PIX_FMT_YUV420P
/usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' declared
here
AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per
2x2 Y samples)
^
ngpkg.cpp:2423:17: error: use of undeclared identifier 'avcodec_encode_video';
did you mean
'avcodec_encode_video2'?
bytes = avcodec_encode_video( context, buff.MPG,
^~~~~~~~~~~~~~~~~~~~
avcodec_encode_video2
/usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video2'
declared here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
^
ngpkg.cpp:2423:48: error: cannot initialize a parameter of type 'AVPacket *'
with an lvalue of type
'uint8_t *' (aka 'unsigned char *')
bytes = avcodec_encode_video( context, buff.MPG,
^~~~~~~~
/usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to
parameter 'avpkt' here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
^
ngpkg.cpp:2446:19: error: use of undeclared identifier 'avcodec_encode_video';
did you mean
'avcodec_encode_video2'?
bytes = avcodec_encode_video( context, buff.MPG, MPGbufsize, NULL );
^~~~~~~~~~~~~~~~~~~~
avcodec_encode_video2
/usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video2'
declared here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
^
ngpkg.cpp:2446:50: error: cannot initialize a parameter of type 'AVPacket *'
with an lvalue of type
'uint8_t *' (aka 'unsigned char *')
bytes = avcodec_encode_video( context, buff.MPG, MPGbufsize, NULL );
^~~~~~~~
/usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to
parameter 'avpkt' here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
^
ngpkg.cpp:2454:25: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO';
did you mean
'AV_CODEC_ID_MPEG1VIDEO'?
if( codec_id == CODEC_ID_MPEG1VIDEO ) {
^~~~~~~~~~~~~~~~~~~
AV_CODEC_ID_MPEG1VIDEO
/usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDEO'
declared here
AV_CODEC_ID_MPEG1VIDEO,
^
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214199
[Bug 214199] cad/netgen: fails to build with ffmpeg 3.x (FFMPEG=on)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list