add new arch m32c (newlib toolchain)
[openadk.git] / package / kodi / patches / patch-xbmc_cores_FFmpeg_h
blob022a971b816fb940d9ae36cd9494dee2eef4a087
1 --- xbmc-16.0-Jarvis.orig/xbmc/cores/FFmpeg.h   2016-02-20 16:21:19.000000000 +0100
2 +++ xbmc-16.0-Jarvis/xbmc/cores/FFmpeg.h        2016-03-19 18:38:18.594026700 +0100
3 @@ -24,7 +24,6 @@
4  #include "utils/CPUInfo.h"
5  
6  extern "C" {
7 -#include "libswscale/swscale.h"
8  #include "libavcodec/avcodec.h"
9  #include "libavformat/avformat.h"
10  #include "libavutil/avutil.h"
11 @@ -33,23 +32,6 @@ extern "C" {
12  #include "libpostproc/postprocess.h"
13  }
15 -inline int SwScaleCPUFlags()
17 -  unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
18 -  int flags = 0;
20 -  if (cpuFeatures & CPU_FEATURE_MMX)
21 -    flags |= SWS_CPU_CAPS_MMX;
22 -  if (cpuFeatures & CPU_FEATURE_MMX2)
23 -    flags |= SWS_CPU_CAPS_MMX2;
24 -  if (cpuFeatures & CPU_FEATURE_3DNOW)
25 -    flags |= SWS_CPU_CAPS_3DNOW;
26 -  if (cpuFeatures & CPU_FEATURE_ALTIVEC)
27 -    flags |= SWS_CPU_CAPS_ALTIVEC;
29 -  return flags;
32  inline int PPCPUFlags()
33  {
34    unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();