Commit graph

5 commits

Author SHA1 Message Date
Jan Beich
70f518b2a2 emulators/kcemu: unbreak build with ffmpeg 3.x
ffmpeg.cc:79:29: error: use of undeclared identifier 'PIX_FMT_YUV420P'; did you mean 'AV_PIX_FMT_YUV420P'?
  _stream->codec->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)
    ^
ffmpeg.cc💯12: error: use of undeclared identifier 'avcodec_alloc_frame'
  _frame = avcodec_alloc_frame();
           ^
ffmpeg.cc:159:18: error: use of undeclared identifier 'avcodec_encode_video'; did you mean 'avcodec_encode_video2'?
  int out_size = avcodec_encode_video(_stream->codec, _buf, _bufsize, _frame);
                 ^~~~~~~~~~~~~~~~~~~~
                 avcodec_encode_video2
/usr/local/include/libavcodec/avcodec.h:5261:5: note: 'avcodec_encode_video2' declared here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
    ^
ffmpeg.cc:159:55: error: cannot initialize a parameter of type 'AVPacket *' with an lvalue of type 'byte_t *' (aka 'unsigned char *')
  int out_size = avcodec_encode_video(_stream->codec, _buf, _bufsize, _frame);
                                                      ^~~~
/usr/local/include/libavcodec/avcodec.h:5261:60: note: passing argument to parameter 'avpkt' here
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
                                                           ^

PR:		214188
Approved by:	maintainer timeout (2 weeks)
2016-11-18 22:00:36 +00:00
Thomas Zander
9f78a3d712 Fix build with ffmpeg 2.7
PR:		201319
Submitted by:	riggs
Approved by:	portmgr (antoine)
2015-07-03 21:36:53 +00:00
Dmitry Marakasov
527f5e3164 - Fix build
Disconnect a program which is not used by the port and which invokes compilation error from build.
Note that Debian has a fix for this, however a person who understands what the utility does is needed to check the patch.

Approved by:	portmgr blanket
MFH:		2014Q4
2014-12-02 00:55:12 +00:00
Adam Weinberger
1e83d51e58 Fix a build failure. Still fails later in the build. 2014-08-26 22:34:57 +00:00
Antoine Brodin
c1f507227a Unbreak
While here, add stage support

PR:		ports/184779
Submitted by:	maintainer
2014-02-08 15:44:34 +00:00