OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fusionsound/ffmpeg-fix.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From: Ville Syrjala <syrjala@sci.fi>
  17. Date: Tue, 21 Oct 2008 13:17:17 +0000 (+0300)
  18. Subject: ffmpeg: Follow ffmpeg changes
  19. X-Git-Url: http://git.directfb.org/?p=core%2FFusionSound.git;a=commitdiff_plain;h=6c9f3e777453b0cdbdf3e1db57ae4bfd7dd922d5
  20. ffmpeg: Follow ffmpeg changes
  21. ---
  22. diff --git a/configure.in b/configure.in
  23. index a9ba0b1..3fab648 100644
  24. --- a/configure.in
  25. +++ b/configure.in
  26. @@ -523,11 +523,11 @@ AC_ARG_WITH(ffmpeg,
  27. if test "x$with_ffmpeg" = "xyes"; then
  28. AC_MSG_CHECKING([for libavcodec/libavformat])
  29. - if $PKG_CONFIG libavcodec libavformat; then
  30. + if $PKG_CONFIG libavcodec libavformat libavutil; then
  31. AC_MSG_RESULT(yes)
  32. ffmpeg="yes"
  33. - FFMPEG_CFLAGS=`$PKG_CONFIG --cflags libavcodec libavformat`
  34. - FFMPEG_LIBS=`$PKG_CONFIG --libs libavcodec libavformat`
  35. + FFMPEG_CFLAGS=`$PKG_CONFIG --cflags libavcodec libavformat libavutil`
  36. + FFMPEG_LIBS=`$PKG_CONFIG --libs libavcodec libavformat libavutil`
  37. else
  38. AC_MSG_RESULT(no)
  39. AC_MSG_WARN([
  40. diff --git a/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c b/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c
  41. index 2a99a16..6ec5317 100644
  42. --- a/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c
  43. +++ b/interfaces/IFusionSoundMusicProvider/ifusionsoundmusicprovider_ffmpeg.c
  44. @@ -41,8 +41,8 @@
  45. #include <misc/sound_util.h>
  46. -#include <avcodec.h>
  47. -#include <avformat.h>
  48. +#include <libavcodec/avcodec.h>
  49. +#include <libavformat/avformat.h>
  50. static DirectResult
  51. Probe( IFusionSoundMusicProvider_ProbeContext *ctx );
  52. @@ -123,8 +123,8 @@ av_read_callback( void *opaque, uint8_t *buf, int size )
  53. return len;
  54. }
  55. -static offset_t
  56. -av_seek_callback( void *opaque, offset_t offset, int whence )
  57. +static int64_t
  58. +av_seek_callback( void *opaque, int64_t offset, int whence )
  59. {
  60. IFusionSoundMusicProvider_FFmpeg_data *data = opaque;
  61. unsigned int pos = 0;