]> git.pld-linux.org Git - packages/xine-lib.git/commitdiff
- api compat
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 2 Oct 2008 07:54:56 +0000 (07:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xine-lib-ffmpeg.patch -> 1.1

xine-lib-ffmpeg.patch [new file with mode: 0644]

diff --git a/xine-lib-ffmpeg.patch b/xine-lib-ffmpeg.patch
new file mode 100644 (file)
index 0000000..86e1774
--- /dev/null
@@ -0,0 +1,33 @@
+
+# HG changeset patch
+# User Darren Salt <linux@youmustbejoking.demon.co.uk>
+# Date 1221306490 -3600
+# Node ID f5ff69fc65d3229ac9908b13c5bb0b9317adf80c
+# Parent 89c3e23896babb1fc6fe0f4299fa645a47297d4c
+Compilation fixes for ffmpeg API & ABI changes.
+
+--- a/src/combined/ffmpeg/ff_audio_decoder.c   Fri Sep 05 21:26:59 2008 +0200
++++ b/src/combined/ffmpeg/ff_audio_decoder.c   Sat Sep 13 12:48:10 2008 +0100
+@@ -322,7 +322,7 @@ static void ff_audio_decode_data (audio_
+     if (!this->output_open) {
+       if (!this->audio_bits || !this->audio_sample_rate || !this->audio_channels) {
+-        avcodec_decode_audio (this->context,
++        avcodec_decode_audio2 (this->context,
+                               (int16_t *)this->decode_buffer,
+                               &decode_buffer_size,
+                               &this->buf[0],
+--- a/src/combined/ffmpeg/ffmpeg_decoder.h     Fri Sep 05 21:26:59 2008 +0200
++++ b/src/combined/ffmpeg/ffmpeg_decoder.h     Sat Sep 13 12:48:10 2008 +0100
+@@ -33,6 +33,10 @@
+ #  include "../../libffmpeg/libavcodec/avcodec.h"
+ #endif
++#if LIBAVCODEC_VERSION_MAJOR > 51
++#define bits_per_sample bits_per_coded_sample
++#endif
++
+ typedef struct ff_codec_s {
+   uint32_t          type;
+   enum CodecID      id;
+
This page took 0.155446 seconds and 4 git commands to generate.