diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-11-18 23:39:38 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-11-18 23:39:38 +0000 |
commit | f58430cc9c41c17570289fa70baec7add84d0d03 (patch) | |
tree | c782a607b4e2275510b96cfb44f03ac32e857b5a /multimedia/miro | |
parent | c9a8f6c892c7eeb73b00c1feb3d89ac6e95d78ca (diff) | |
download | ports-f58430cc9c41c17570289fa70baec7add84d0d03.tar.gz ports-f58430cc9c41c17570289fa70baec7add84d0d03.zip |
multimedia/miro: unbreak build with ffmpeg 3.x
linux/miro-segmenter.c:81:92: error: use of
undeclared identifier 'CODEC_ID_MP3'; did you mean 'AV_CODEC_ID_MP3'?
...== 1 && input_codec_context->codec_id == CODEC_ID_MP3) || input_codec_context->codec_id == CO...
^~~~~~~~~~~~
AV_CODEC_ID_MP3
/usr/local/include/libavcodec/avcodec.h:517:5: note: 'AV_CODEC_ID_MP3' declared here
AV_CODEC_ID_MP3, ///< preferred ID for decoding MPEG audio layer 1, 2 or 3
^
linux/miro-segmenter.c:81:142: error: use of
undeclared identifier 'CODEC_ID_AC3'; did you mean 'AV_CODEC_ID_AC3'?
...== CODEC_ID_MP3) || input_codec_context->codec_id == CODEC_ID_AC3) {
^~~~~~~~~~~~
AV_CODEC_ID_AC3
/usr/local/include/libavcodec/avcodec.h:519:5: note: 'AV_CODEC_ID_AC3' declared here
AV_CODEC_ID_AC3,
^
PR: 214195
Approved by: portmgr blanket
Notes
Notes:
svn path=/head/; revision=426348
Diffstat (limited to 'multimedia/miro')
-rw-r--r-- | multimedia/miro/files/patch-linux_miro-segmenter.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/multimedia/miro/files/patch-linux_miro-segmenter.c b/multimedia/miro/files/patch-linux_miro-segmenter.c index ed3225914b2f..abc5769fe0e7 100644 --- a/multimedia/miro/files/patch-linux_miro-segmenter.c +++ b/multimedia/miro/files/patch-linux_miro-segmenter.c @@ -1,5 +1,5 @@ ---- linux/miro-segmenter.c.orig 2012-01-15 13:57:34.494670887 +0100 -+++ linux/miro-segmenter.c 2012-01-15 13:57:40.513497721 +0100 +--- linux/miro-segmenter.c.orig 2013-04-05 16:02:42 UTC ++++ linux/miro-segmenter.c @@ -25,6 +25,10 @@ #include <sys/types.h> #include <sys/socket.h> @@ -11,3 +11,15 @@ #include <arpa/inet.h> #include <errno.h> +@@ -74,7 +78,11 @@ static AVStream *add_output_stream(AVFor + output_codec_context->sample_rate = input_codec_context->sample_rate; + output_codec_context->channels = input_codec_context->channels; + output_codec_context->frame_size = input_codec_context->frame_size; ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 25, 0) + if ((input_codec_context->block_align == 1 && input_codec_context->codec_id == CODEC_ID_MP3) || input_codec_context->codec_id == CODEC_ID_AC3) { ++#else ++ if ((input_codec_context->block_align == 1 && input_codec_context->codec_id == AV_CODEC_ID_MP3) || input_codec_context->codec_id == AV_CODEC_ID_AC3) { ++#endif + output_codec_context->block_align = 0; + } + else { |