/[packages]/cauldron/xbmc/current/SOURCES/0006-fixed-build-with-recent-external-ffmpeg-fixes-11259.patch
ViewVC logotype

Contents of /cauldron/xbmc/current/SOURCES/0006-fixed-build-with-recent-external-ffmpeg-fixes-11259.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 162472 - (show annotations) (download)
Thu Nov 3 18:58:48 2011 UTC (12 years, 5 months ago) by anssi
File size: 1839 byte(s)
- fix build with current FFmpeg
  o 12 patches backported from upstream git master
    (including 4 previously committed but non-submitted patches (SILENT)
     re-backported with proper names) (SILENT)
  o xbmc-pvr-new-ffmpeg.patch
- build with libpng12 instead of libpng (fixes build)
- renumber patches
- fix grammar of a .spec comment
- build with external FFmpeg (SILENT, reverts non-submitted commit)

1 From 2ead30c5ccd66871585e04283dc84f75390eb9dd Mon Sep 17 00:00:00 2001
2 From: Anssi Hannula <anssi@xbmc.org>
3 Date: Mon, 21 Mar 2011 14:22:03 +0200
4 Subject: [PATCH 06/12] fixed: build with recent external ffmpeg (fixes
5 #11259)
6
7 Libavcore was merged to libavutil in FFmpeg commit 737eb5976f6a on
8 2011-02-15. Fix build with an external FFmpeg where that is the case.
9
10 Tested by Paul Menzel <paulepanter@users.sourceforge.net>.
11
12 (partial cherry-pick of 453689b5cba4b6da8a5df1e43cb9958623d46613)
13 ---
14 configure.in | 3 +++
15 xbmc/cores/dvdplayer/Codecs/DllAvCodec.h | 4 ++++
16 2 files changed, 7 insertions(+), 0 deletions(-)
17
18 diff --git a/configure.in b/configure.in
19 index 2a0a964..16ce014 100644
20 --- a/configure.in
21 +++ b/configure.in
22 @@ -855,6 +855,9 @@ if test "$use_external_ffmpeg" = "yes"; then
23 [AC_CHECK_HEADERS([ffmpeg/avcodec.h ffmpeg/avformat.h ffmpeg/avutil.h postproc/postprocess.h ffmpeg/swscale.h],,
24 [AC_MSG_ERROR($missing_headers)])])
25
26 + # optional
27 + AC_CHECK_HEADERS([libavutil/samplefmt.h])
28 +
29 # We'll support the use of rgb2rgb.h if it exists.
30 AC_CHECK_HEADERS([libswscale/rgb2rgb.h],,)
31 AC_CHECK_HEADERS([ffmpeg/rgb2rgb.h],,)
32 diff --git a/xbmc/cores/dvdplayer/Codecs/DllAvCodec.h b/xbmc/cores/dvdplayer/Codecs/DllAvCodec.h
33 index 3b11c41..2394c20 100644
34 --- a/xbmc/cores/dvdplayer/Codecs/DllAvCodec.h
35 +++ b/xbmc/cores/dvdplayer/Codecs/DllAvCodec.h
36 @@ -55,6 +55,10 @@ extern "C" {
37 #include <ffmpeg/avformat.h>
38 #endif
39 #endif
40 + #ifdef HAVE_LIBAVUTIL_SAMPLEFMT_H
41 + #include <libavutil/audioconvert.h>
42 + #include <libavutil/samplefmt.h>
43 + #endif
44 /* We'll just inlude this header in our project for now */
45 #include "xbmc/cores/dvdplayer/Codecs/ffmpeg/libavcodec/audioconvert.h"
46 #include "xbmc/cores/dvdplayer/Codecs/ffmpeg/libavutil/crc.h"
47 --
48 1.7.4.4
49

  ViewVC Help
Powered by ViewVC 1.1.30