[SCM] libquicktime/master: add patch to fix compilation with Libav 0.7

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Fri Jul 1 18:14:42 UTC 2011


The following commit has been merged in the master branch:
commit c8a496a935fb2885857ef8ac25ab89d20698989e
Author: Reinhard Tartler <siretart at tauware.de>
Date:   Fri Jul 1 18:28:43 2011 +0200

    add patch to fix compilation with Libav 0.7

diff --git a/debian/patches/30-libav-0.7.patch b/debian/patches/30-libav-0.7.patch
new file mode 100644
index 0000000..c956a4f
--- /dev/null
+++ b/debian/patches/30-libav-0.7.patch
@@ -0,0 +1,31 @@
+From: Reinhard Tartler <siretart at tauware.de>
+Subject: Fix compilation against Libav 0.7
+Forwarded: no
+
+libquicktime still uses deprecated API that have been removed in Libav
+0.7/FFmpeg 0.8.
+
+--- a/plugins/ffmpeg/lqt_ffmpeg.c
++++ b/plugins/ffmpeg/lqt_ffmpeg.c
+@@ -1031,8 +1031,8 @@ static void set_codec_info(struct CODECI
+   snprintf(ffmpeg_long_name, 256, "%s", map->name);
+   snprintf(ffmpeg_description, 256, "%s", map->name);
+   
+-  if((map->encoder && (map->encoder->type == CODEC_TYPE_VIDEO)) ||
+-     (map->decoder && (map->decoder->type == CODEC_TYPE_VIDEO))){
++  if((map->encoder && (map->encoder->type == AVMEDIA_TYPE_VIDEO)) ||
++     (map->decoder && (map->decoder->type == AVMEDIA_TYPE_VIDEO))){
+        codec_info_ffmpeg.type = LQT_CODEC_VIDEO;
+   } else {
+        codec_info_ffmpeg.type = LQT_CODEC_AUDIO;
+--- a/plugins/ffmpeg/params.c
++++ b/plugins/ffmpeg/params.c
+@@ -205,8 +205,6 @@ void lqt_ffmpeg_set_parameter(AVCodecCon
+   PARAM_FLOAT("ff_p_masking",p_masking);
+   PARAM_FLOAT("ff_dark_masking",dark_masking);
+   PARAM_ENUM("ff_prediction_method",prediction_method,prediction_method);
+-  PARAM_INT("ff_mb_qmin",mb_qmin);
+-  PARAM_INT("ff_mb_qmax",mb_qmax);
+   PARAM_ENUM("ff_me_cmp",me_cmp,compare_func);
+   PARAM_CMP_CHROMA("ff_me_cmp_chroma",me_cmp);
+   PARAM_ENUM("ff_me_sub_cmp",me_sub_cmp,compare_func);
diff --git a/debian/patches/series b/debian/patches/series
index 158a9cd..579092b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
 12-dont_use_pathmax.patch
 22-spelling_errors.patch
 23-manpage_errors.patch
+30-libav-0.7.patch

-- 
libquicktime packaging



More information about the pkg-multimedia-commits mailing list