patch-xbmc_cores_FFmpeg_h 943 B

12345678910111213141516171819202122232425262728293031323334
  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. extern "C" {
  6. -#include "libswscale/swscale.h"
  7. #include "libavcodec/avcodec.h"
  8. #include "libavformat/avformat.h"
  9. #include "libavutil/avutil.h"
  10. @@ -33,23 +32,6 @@ extern "C" {
  11. #include "libpostproc/postprocess.h"
  12. }
  13. -inline int SwScaleCPUFlags()
  14. -{
  15. - unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
  16. - int flags = 0;
  17. -
  18. - if (cpuFeatures & CPU_FEATURE_MMX)
  19. - flags |= SWS_CPU_CAPS_MMX;
  20. - if (cpuFeatures & CPU_FEATURE_MMX2)
  21. - flags |= SWS_CPU_CAPS_MMX2;
  22. - if (cpuFeatures & CPU_FEATURE_3DNOW)
  23. - flags |= SWS_CPU_CAPS_3DNOW;
  24. - if (cpuFeatures & CPU_FEATURE_ALTIVEC)
  25. - flags |= SWS_CPU_CAPS_ALTIVEC;
  26. -
  27. - return flags;
  28. -}
  29. -
  30. inline int PPCPUFlags()
  31. {
  32. unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();