summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-03-13 17:50:56 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-03-13 17:50:56 +0100
commit074c488a260f97a3497ea7c88d9869398ee06a2c (patch)
treefd5d3e484a58772f480831ca3e1dd88a952711af /net-voip/homer/files/homer-0.24.1-libav-9.patch
parentnet-firewall/nfacct: Remove old (diff)
downloadgentoo-074c488a260f97a3497ea7c88d9869398ee06a2c.tar.gz
gentoo-074c488a260f97a3497ea7c88d9869398ee06a2c.tar.bz2
gentoo-074c488a260f97a3497ea7c88d9869398ee06a2c.zip
net-voip/homer: Remove old
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-voip/homer/files/homer-0.24.1-libav-9.patch')
-rw-r--r--net-voip/homer/files/homer-0.24.1-libav-9.patch101
1 files changed, 0 insertions, 101 deletions
diff --git a/net-voip/homer/files/homer-0.24.1-libav-9.patch b/net-voip/homer/files/homer-0.24.1-libav-9.patch
deleted file mode 100644
index 985145e06540..000000000000
--- a/net-voip/homer/files/homer-0.24.1-libav-9.patch
+++ /dev/null
@@ -1,101 +0,0 @@
---- HomerMultimedia/include/Header_Ffmpeg.h
-+++ HomerMultimedia/include/Header_Ffmpeg.h
-@@ -173,4 +173,16 @@
- #endif
- }
-
-+inline AVStream *HM_avformat_new_stream(AVFormatContext *s, int id)
-+{
-+ #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53, 10, 0)
-+ return av_new_stream(s, c);
-+ #else
-+ AVStream *st = avformat_new_stream(s, NULL);
-+ if (st)
-+ st->id = id;
-+ return st;
-+ #endif
-+}
-+
- #endif
---- HomerMultimedia/src/MediaSource.cpp
-+++ HomerMultimedia/src/MediaSource.cpp
-@@ -236,11 +236,19 @@
- {
- if (tCodec->type == AVMEDIA_TYPE_VIDEO)
- {
-+ #ifndef FF_API_OLD_ENCODE_AUDIO
- bool tEncode = (tCodec->encode != NULL);
-+ #else
-+ bool tEncode = (tCodec->encode2 != NULL);
-+ #endif
- bool tDecode = (tCodec->decode != NULL);
- if ((tNextCodec != NULL) && (strcmp(tCodec->name, tNextCodec->name) == 0))
- {
-+ #ifndef FF_API_OLD_ENCODE_AUDIO
- tEncode |= (tNextCodec->encode != NULL);
-+ #else
-+ tEncode |= (tNextCodec->encode2 != NULL);
-+ #endif
- tDecode |= (tNextCodec->decode != NULL);
- tCodec = tNextCodec;
- }
-@@ -296,11 +304,19 @@
- // tNextCodec->encode ? "E" : " ",
- // tNextCodec->name,
- // tNextCodec->long_name ? tCodec->long_name : "");
-+ #ifndef FF_API_OLD_ENCODE_AUDIO
- bool tEncode = (tCodec->encode != NULL);
-+ #else
-+ bool tEncode = (tCodec->encode2 != NULL);
-+ #endif
- bool tDecode = (tCodec->decode != NULL);
- if ((tNextCodec != NULL) && (strcmp(tCodec->name, tNextCodec->name) == 0))
- {
-+ #ifndef FF_API_OLD_ENCODE_AUDIO
- tEncode |= (tNextCodec->encode != NULL);
-+ #else
-+ tEncode |= (tNextCodec->encode2 != NULL);
-+ #endif
- tDecode |= (tNextCodec->decode != NULL);
- tCodec = tNextCodec;
- }
-@@ -1622,7 +1638,7 @@
- sprintf(mRecorderFormatContext->filename, "%s", pSaveFileName.c_str());
-
- // allocate new stream structure
-- tStream = av_new_stream(mRecorderFormatContext, 0);
-+ tStream = HM_avformat_new_stream(mRecorderFormatContext, 0);
- mRecorderCodecContext = tStream->codec;
-
- // put sample parameters
---- HomerMultimedia/src/MediaSourceMuxer.cpp
-+++ HomerMultimedia/src/MediaSourceMuxer.cpp
-@@ -377,7 +377,7 @@
-
- // allocate new stream structure
- LOG(LOG_VERBOSE, "..allocating new stream");
-- tStream = av_new_stream(mFormatContext, 0);
-+ tStream = HM_avformat_new_stream(mFormatContext, 0);
- mCodecContext = tStream->codec;
- mCodecContext->codec_id = tFormat->video_codec;
- mCodecContext->codec_type = AVMEDIA_TYPE_VIDEO;
-@@ -710,7 +710,7 @@
- }
-
- // allocate new stream structure
-- tStream = av_new_stream(mFormatContext, 0);
-+ tStream = HM_avformat_new_stream(mFormatContext, 0);
- mCodecContext = tStream->codec;
- mCodecContext->codec_id = tFormat->audio_codec;
- mCodecContext->codec_type = AVMEDIA_TYPE_AUDIO;
---- HomerMultimedia/src/RTP.cpp
-+++ HomerMultimedia/src/RTP.cpp
-@@ -512,7 +512,7 @@
- // verbose timestamp debugging mRtpFormatContext->debug = FF_FDEBUG_TS;
-
- // allocate new stream structure
-- tOuterStream = av_new_stream(mRtpFormatContext, 0);//(AVStream*)av_mallocz(sizeof(AVStream));
-+ tOuterStream = HM_avformat_new_stream(mRtpFormatContext, 0);//(AVStream*)av_mallocz(sizeof(AVStream));
- if (tOuterStream == NULL)
- {
- LOG(LOG_ERROR, "Memory allocation failed");