• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/kodi/0006-ffmpeg30.patch
Bernd KuhlsBernd Kuhls committed 7181375669624 Apr 2016
Raw file
Source viewDiff to previous
-                                                         CPictureScalingAlgorithm::ToSwscale(scalingAlgorithm) | SwScaleCPUFlags(), NULL, NULL, NULL);
 
1
Add support for ffmpeg 3.0
2
​
3
Changes from original commit are only in file paths & quilt refresh.
4
​
5
commit c31b7d374062f87c7512d9872cbceac920465913
6
Author: Philip Langdale <philipl@overt.org>
7
Date:   Mon Sep 21 19:49:36 2015 -0700
8
​
9
    ffmpeg: Update AVPixelFormat and AV_PIX_FMT_* to compile with master
10
    
11
    The deprecated PixelFormat and PIX_FMT_* names have been removed in
12
    ffmpeg master.
13
​
14
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
15
[Downloaded from
16
https://gitweb.gentoo.org/repo/gentoo.git/tree/media-tv/kodi/files/kodi-16-ffmpeg3.patch]
17
​
18
Index: xbmc-16.0-Jarvis/xbmc/cores/FFmpeg.h
19
===================================================================
20
--- xbmc-16.0-Jarvis.orig/xbmc/cores/FFmpeg.h
21
+++ xbmc-16.0-Jarvis/xbmc/cores/FFmpeg.h
22
@@ -24,7 +24,6 @@
23
 #include "utils/CPUInfo.h"
24
 
25
 extern "C" {
26
-#include "libswscale/swscale.h"
27
 #include "libavcodec/avcodec.h"
28
 #include "libavformat/avformat.h"
29
 #include "libavutil/avutil.h"
30
@@ -33,23 +32,6 @@ extern "C" {
31
 #include "libpostproc/postprocess.h"
32
 }
33
 
34
-inline int SwScaleCPUFlags()
35
-{
36
-  unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
37
-  int flags = 0;
38
-
39
-  if (cpuFeatures & CPU_FEATURE_MMX)
40
-    flags |= SWS_CPU_CAPS_MMX;
41
-  if (cpuFeatures & CPU_FEATURE_MMX2)
42
-    flags |= SWS_CPU_CAPS_MMX2;
43
-  if (cpuFeatures & CPU_FEATURE_3DNOW)
44
-    flags |= SWS_CPU_CAPS_3DNOW;
45
-  if (cpuFeatures & CPU_FEATURE_ALTIVEC)
46
-    flags |= SWS_CPU_CAPS_ALTIVEC;
47
-
48
-  return flags;
49
-}
50
-
51
 inline int PPCPUFlags()
52
 {
53
   unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
54
Index: xbmc-16.0-Jarvis/xbmc/cores/dvdplayer/DVDCodecs/DVDCodecUtils.cpp
55
===================================================================
56
--- xbmc-16.0-Jarvis.orig/xbmc/cores/dvdplayer/DVDCodecs/DVDCodecUtils.cpp
57
+++ xbmc-16.0-Jarvis/xbmc/cores/dvdplayer/DVDCodecs/DVDCodecUtils.cpp
58
@@ -39,7 +39,7 @@ extern "C" {
59
 #include "libswscale/swscale.h"
60
 }
61
 
62
-// allocate a new picture (PIX_FMT_YUV420P)
63
+// allocate a new picture (AV_PIX_FMT_YUV420P)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.