aboutsummaryrefslogtreecommitdiffstats
path: root/community/freerdp/ffmpeg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/freerdp/ffmpeg.patch')
-rw-r--r--community/freerdp/ffmpeg.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/freerdp/ffmpeg.patch b/community/freerdp/ffmpeg.patch
new file mode 100644
index 0000000000..5025771d26
--- /dev/null
+++ b/community/freerdp/ffmpeg.patch
@@ -0,0 +1,39 @@
+--- FreeRDP-1.1.0-beta-2013071101.orig/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c
++++ FreeRDP-1.1.0-beta-2013071101/channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c
+@@ -37,6 +37,10 @@
+ #include "tsmf_constants.h"
+ #include "tsmf_decoder.h"
+
++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
++#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
++#endif
++
+ /* Compatibility with older FFmpeg */
+ #if LIBAVUTIL_VERSION_MAJOR < 50
+ #define AVMEDIA_TYPE_VIDEO 0
+@@ -48,7 +52,7 @@
+ ITSMFDecoder iface;
+
+ int media_type;
+- enum CodecID codec_id;
++ enum AVCodecID codec_id;
+ AVCodecContext* codec_context;
+ AVCodec* codec;
+ AVFrame* frame;
+@@ -97,16 +101,6 @@
+ mdecoder->codec_context->bit_rate = media_type->BitRate;
+ mdecoder->codec_context->channels = media_type->Channels;
+ mdecoder->codec_context->block_align = media_type->BlockAlign;
+-
+-#ifdef AV_CPU_FLAG_SSE2
+- mdecoder->codec_context->dsp_mask = AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_MMX2;
+-#else
+-#if LIBAVCODEC_VERSION_MAJOR < 53
+- mdecoder->codec_context->dsp_mask = FF_MM_SSE2 | FF_MM_MMXEXT;
+-#else
+- mdecoder->codec_context->dsp_mask = FF_MM_SSE2 | FF_MM_MMX2;
+-#endif
+-#endif
+
+ return TRUE;
+ }