diff options
author | eroen <eroen@falcon.eroen.eu> | 2013-11-28 11:33:46 +0100 |
---|---|---|
committer | eroen <eroen@falcon.eroen.eu> | 2013-11-28 11:33:46 +0100 |
commit | 26714570dba499f76d515399d0ec1d99282fd438 (patch) | |
tree | 72578eadb35fd6877e0a3cf1c11358ec15764f53 /net-misc | |
parent | freerdp from gentoo (diff) | |
download | eroen-26714570dba499f76d515399d0ec1d99282fd438.tar.gz eroen-26714570dba499f76d515399d0ec1d99282fd438.tar.bz2 eroen-26714570dba499f76d515399d0ec1d99282fd438.zip |
freerdp - patch for ffmpeg-2.1 from upstream
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/freerdp/Manifest | 3 | ||||
-rw-r--r-- | net-misc/freerdp/files/ffmpeg21.patch | 112 | ||||
-rw-r--r-- | net-misc/freerdp/freerdp-1.1.0_beta1_p20130710.ebuild | 1 |
3 files changed, 115 insertions, 1 deletions
diff --git a/net-misc/freerdp/Manifest b/net-misc/freerdp/Manifest index 8f72467..af9c0c3 100644 --- a/net-misc/freerdp/Manifest +++ b/net-misc/freerdp/Manifest @@ -1,3 +1,4 @@ +AUX ffmpeg21.patch 3900 SHA256 2da6064c0ce3b02df6587c34dde65a8a2313edc411d8205cf80e9cfe4e7c6ca5 SHA512 12fc2cd97e641f57c1253b02f7db884b149f98cf41e71505c85456c48433c8b30f6ae75bca81eefcdc3132c2c2cf76b0e5dce1d42e357813c54e808dc49e74f4 WHIRLPOOL 93190e1066cc063f7dcdaa92eb29a414a01bb381c2cb2356f1a91228a27712510623d13300f582895fe91e60ff29092d265753ddffa4d6608653d7934508c89f DIST freerdp-1.1.0_beta1_p20130710.tar.gz 6682149 SHA256 0d0d2eec7e78b61458415ee98ad54379b31e9fc269b8bacf3e939bd048ac5e61 SHA512 89ec08acff5c9bbafe107cd079005146b6c4447fbe3172d8f774a20ab6b5e1f24abdeab2d7cb0d7694251aaea2924b0a10f1c0b4b660994cdfa51e8428b90440 WHIRLPOOL 2f7c04bde54293fc8fc85ba03baf7dc64e5da4cecdc87aaaa2ff316127abc43f0b56d70e14652f97f2e97a8f43bee8880837a94230448397dfad5f4ddbd055b1 -EBUILD freerdp-1.1.0_beta1_p20130710.ebuild 2531 SHA256 1699642570d3bea0172336efc2f1ad14118de3706119098dcc374e8d36e56dfd SHA512 9fef8fa8c8f92289b89d9982dead8544c5f79a4c5472e0ea80c4ad69c49a04220d1f093b32664b1869b4a13fb93c1488683524d604896d659be25849749b86a8 WHIRLPOOL 35d735c0cd96ea59252d9ec3933d9f76f2b5f98f002647a1c34f895638e1f678912e8c29eea56de4f6a15a514ea7d121d93b4011b5879816ecc0ebb621317259 +EBUILD freerdp-1.1.0_beta1_p20130710.ebuild 2572 SHA256 dccd9603d47f11cd40d7984e272570d2bbb7b931a0c962ccf762b74e0f9d9407 SHA512 b85ffd6c89979961918f9eaaa55dd939546dd372f9efb157bd3fc284ce52dd4e5b45fbad44115e358779a95e77526fcb5501882bc769099f70bbd30063d49c30 WHIRLPOOL 3ede471920e42fb195a7baa343cf11d5127b0eaeddc7d03dd9999e7a9d41bb1fbb1473e8a24777d49beb585d253c5c981a4829aa3ebc9d064fa9ee0b2f1ebe9d MISC metadata.xml 410 SHA256 a72feebca542632c8bf273df04b6e734c369d69e76bcdc4b2b7ad2896e0da3fd SHA512 1f47833a84fa53b694ae3ddc20c7bcd4fe9fca22cd51f1e670a744060ffa629cf03250b9bfde02539ed82a4bda409171b4f19bb9a10ae4ef9ebe05723dc33978 WHIRLPOOL f3a15d853f73840ef736aebc0f40a4318527260912912667869788596384fd8a840d063b817621af01b209646dc4b5b5cef37ce8bb4a9c5d8b716a1977c59056 diff --git a/net-misc/freerdp/files/ffmpeg21.patch b/net-misc/freerdp/files/ffmpeg21.patch new file mode 100644 index 0000000..b6a9c8d --- /dev/null +++ b/net-misc/freerdp/files/ffmpeg21.patch @@ -0,0 +1,112 @@ +commit bf065f3e892e0a94e442de9a7155a7ac170f2add +Author: eroen <eroen@falcon.eroen.eu> +Date: Thu Nov 21 11:35:53 2013 +0100 + + ffmpeg-2 -- AVCODEC_MAX_AUDIO_FRAME_SIZE + + deprecated: + http://git.videolan.org/?p=ffmpeg.git;a=commit;h=0eea212943544d40f99b05571aa7159d78667154 + + broken with libavcodec 54 + +diff --git a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +index adf8e04..0d5b956 100644 +--- a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c ++++ b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +@@ -43,6 +43,12 @@ + #define AVMEDIA_TYPE_AUDIO 1 + #endif + ++#if LIBAVCODEC_VERSION_MAJOR < 54 ++#define MAX_AUDIO_FRAME_SIZE AVCODEC_MAX_AUDIO_FRAME_SIZE ++#else ++#define MAX_AUDIO_FRAME_SIZE 192000 ++#endif ++ + typedef struct _TSMFFFmpegDecoder + { + ITSMFDecoder iface; +@@ -351,7 +357,7 @@ static BOOL tsmf_ffmpeg_decode_audio(ITSMFDecoder* decoder, const BYTE* data, UI + #endif + + if (mdecoder->decoded_size_max == 0) +- mdecoder->decoded_size_max = AVCODEC_MAX_AUDIO_FRAME_SIZE + 16; ++ mdecoder->decoded_size_max = MAX_AUDIO_FRAME_SIZE + 16; + mdecoder->decoded_data = malloc(mdecoder->decoded_size_max); + ZeroMemory(mdecoder->decoded_data, mdecoder->decoded_size_max); + /* align the memory for SSE2 needs */ +@@ -363,7 +369,7 @@ static BOOL tsmf_ffmpeg_decode_audio(ITSMFDecoder* decoder, const BYTE* data, UI + while (src_size > 0) + { + /* Ensure enough space for decoding */ +- if (mdecoder->decoded_size_max - mdecoder->decoded_size < AVCODEC_MAX_AUDIO_FRAME_SIZE) ++ if (mdecoder->decoded_size_max - mdecoder->decoded_size < MAX_AUDIO_FRAME_SIZE) + { + mdecoder->decoded_size_max = mdecoder->decoded_size_max * 2 + 16; + mdecoder->decoded_data = realloc(mdecoder->decoded_data, mdecoder->decoded_size_max); + +commit cbcf0de3fac985afaeeef7daf104c94ad8cdca26 +Author: eroen <eroen@falcon.eroen.eu> +Date: Thu Nov 21 13:14:04 2013 +0100 + + ffmpeg-2 -- dsp_mask + + deprecated: + http://git.videolan.org/?p=ffmpeg.git;a=commit;h=95510be8c35753da8f48062b28b65e7acdab965f + + broken with libavcodec 55 + +diff --git a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +index 0d5b956..1f99ec3 100644 +--- a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c ++++ b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +@@ -104,6 +104,7 @@ static BOOL tsmf_ffmpeg_init_audio_stream(ITSMFDecoder* decoder, const TS_AM_MED + mdecoder->codec_context->channels = media_type->Channels; + mdecoder->codec_context->block_align = media_type->BlockAlign; + ++#if LIBAVCODEC_VERSION_MAJOR < 55 + #ifdef AV_CPU_FLAG_SSE2 + mdecoder->codec_context->dsp_mask = AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_MMX2; + #else +@@ -113,6 +114,13 @@ static BOOL tsmf_ffmpeg_init_audio_stream(ITSMFDecoder* decoder, const TS_AM_MED + mdecoder->codec_context->dsp_mask = FF_MM_SSE2 | FF_MM_MMX2; + #endif + #endif ++#else /* LIBAVCODEC_VERSION_MAJOR < 55 */ ++#ifdef AV_CPU_FLAG_SSE2 ++ av_set_cpu_flags_mask(AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_MMX2); ++#else ++ av_set_cpu_flags_mask(FF_MM_SSE2 | FF_MM_MMX2); ++#endif ++#endif /* LIBAVCODEC_VERSION_MAJOR < 55 */ + + return TRUE; + } + +commit 6fe23e1a3860528a8ecdfc8e9ccfdbd0e3945869 +Author: eroen <eroen@falcon.eroen.eu> +Date: Thu Nov 21 13:26:03 2013 +0100 + + ffmpeg-2 -- CodecID + + deprecated: + http://git.videolan.org/?p=ffmpeg.git;a=commit;h=104e10fb426f903ba9157fdbfe30292d0e4c3d72 + + broken with libavcodec 55 + +diff --git a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +index 1f99ec3..09b4f68 100644 +--- a/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c ++++ b/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c +@@ -54,7 +54,11 @@ typedef struct _TSMFFFmpegDecoder + ITSMFDecoder iface; + + int media_type; ++#if LIBAVCODEC_VERSION_MAJOR < 55 + enum CodecID codec_id; ++#else ++ enum AVCodecID codec_id; ++#endif + AVCodecContext* codec_context; + AVCodec* codec; + AVFrame* frame; diff --git a/net-misc/freerdp/freerdp-1.1.0_beta1_p20130710.ebuild b/net-misc/freerdp/freerdp-1.1.0_beta1_p20130710.ebuild index cca0115..75421b6 100644 --- a/net-misc/freerdp/freerdp-1.1.0_beta1_p20130710.ebuild +++ b/net-misc/freerdp/freerdp-1.1.0_beta1_p20130710.ebuild @@ -72,6 +72,7 @@ DEPEND="${RDEPEND} ) ) ) " +PATCHES=( "${FILESDIR}"/ffmpeg21.patch ) DOCS=( README ) src_configure() { |